コード例 #1
0
ファイル: ScriptHandler.php プロジェクト: modera/foundation
 /**
  * @param Event $event
  */
 public static function registerBundles(Event $event)
 {
     $options = static::getOptions($event);
     $appDir = $options['symfony-app-dir'];
     if (!is_dir($appDir)) {
         echo 'The symfony-app-dir (' . $appDir . ') specified in composer.json was not found in ' . getcwd() . '.' . PHP_EOL;
         return;
     }
     $bundlesFile = 'AppModuleBundles.php';
     $bundles = ComposerService::getRegisterBundles($event->getComposer());
     static::createRegisterBundlesFile($bundles, $appDir . '/' . $bundlesFile);
     static::executeCommand($event, $appDir, 'modera:module:register ' . $bundlesFile, $options['process-timeout']);
 }
コード例 #2
0
ファイル: ModuleRepository.php プロジェクト: modera/module
 /**
  * @param string $name
  * @return bool
  */
 public function removePackage($name, OutputInterface $output = null)
 {
     return ComposerService::removePackage($this->workingDir, $name, $output);
 }