/** * Run the application and if no command is provided, use project:run. * * @param bool $interactive Whether to run in interactive mode. * * @return void */ public function run($interactive = false) { $app = $this['console']; if ($interactive) { $app = new \Symfony\Component\Console\Shell($app); } $app->run(new \phpDocumentor\Console\Input\ArgvInput()); }
<?php $sh = new Symfony\Component\Console\Shell($app); $sh->run();