Author: Jordi Boggiano (j.boggiano@seld.be)
Inheritance: extends Symfony\Component\Console\Application
Exemplo n.º 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);
 }
Exemplo n.º 2
0
 /**
  * Initializes all the composer commands
  */
 protected function registerCommands()
 {
     $this->add(new CrawlCommand());
     parent::registerCommands();
 }