private function writeConfig()
    {
        $fileName = Yii::getAlias($this->module->extensionsStorage);
        $writer = new ApplicationConfigWriter([
            'filename' => $fileName,
        ]);
        $writer->addValues($this->extensions);

        if (true === $writer->commit()) {
            $this->stdout('Extensions configuration successfully updated.' . PHP_EOL);
            if (true === $this->module->configurationUpdater->updateConfiguration(false)) {
                $this->stdout('Application configuration successfully updated.' . PHP_EOL);
                return true;
            } else {
                $this->stdout('Application configuration update error.' . PHP_EOL);
                return false;
            }
        } else {
            $this->stdout('There was an error while updating extensions configuration file.' . PHP_EOL);
        }
        return false;
    }