Exemple #1
0
 /**
  * @param array $hash
  */
 private function _writeToComposerFile(array $hash)
 {
     $composerFile = new Composer\Json\JsonFile($this->_installation->getDirRoot() . 'composer.json');
     $configCurrent = $composerFile->read();
     $this->_filesystemHelper->notify('modify', 'composer.json');
     $configMerged = $this->_mergeConfigs($configCurrent, $hash);
     $composerFile->write($configMerged);
     $this->_installation->reload();
 }