Symfony\Installer\DownloadCommand::updateComposerConfig PHP Méthode

updateComposerConfig() protected méthode

Updates the composer.json file to provide better values for some of the default configuration values.
protected updateComposerConfig ( )
    protected function updateComposerConfig()
    {
        $this->composerManager->initializeProjectConfig();
        return $this;
    }

Usage Example

 /**
  * Updates the composer.json file to provide better values for some of the
  * default configuration values.
  *
  * @return $this
  */
 protected function updateComposerConfig()
 {
     parent::updateComposerConfig();
     $this->composerManager->updateProjectConfig(['name' => $this->composerManager->createPackageName($this->projectName), 'license' => 'proprietary', 'description' => null, 'extra' => ['branch-alias' => null]]);
     return $this;
 }