Symfony\Installer\DownloadCommand::updateComposerConfig PHP Method

updateComposerConfig() protected method

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

Example #1
0
 /**
  * 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;
 }