/** * @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']); }
/** * @param string $name * @return bool */ public function removePackage($name, OutputInterface $output = null) { return ComposerService::removePackage($this->workingDir, $name, $output); }