Автор: Jordi Boggiano (j.boggiano@seld.be)
Наследование: extends Symfony\Component\Console\Application
Пример #1
0
 protected function runSatis()
 {
     ini_set('memory_limit', '1024M');
     putenv('COMPOSER_HOME=' . APP_ROOT);
     $application = new Application();
     $application->add(new BuildCommand());
     $arguments = ['build', 'file' => $this->config['config'], 'output-dir' => APP_ROOT . '/public', '--no-html-output' => true];
     $input = new ArrayInput($arguments);
     $output = new NullOutput();
     $application->run($input, $output);
 }
Пример #2
0
 /**
  * Initializes all the composer commands
  */
 protected function registerCommands()
 {
     $this->add(new CrawlCommand());
     parent::registerCommands();
 }