示例#1
0
 /**
  * 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());
 }
示例#2
0
<?php

$sh = new Symfony\Component\Console\Shell($app);
$sh->run();