Exemple #1
0
 /**
  * @param string $name
  * @param string $path
  */
 public function addNamespace($name, $path)
 {
     $namespaceDirectory = new CM_File($path, $this->_installation->getFilesystem());
     $this->_filesystemHelper->createDirectory($namespaceDirectory);
     $configAdditions = array('autoload' => array('psr-0' => array($name . '_' => dirname($path) . '/')));
     $this->_writeToComposerFile($configAdditions);
 }