createDefaultApplication() public static method

public static createDefaultApplication ( null | string $appName = null, null | string $appVersion = null ) : Robo\Application
$appName null | string
$appVersion null | string
return Robo\Application
Ejemplo n.º 1
0
 public function initSeeInOutputTrait($container, $input = null)
 {
     $this->capturedOutput = '';
     $this->testPrinter = new BufferedOutput(OutputInterface::VERBOSITY_DEBUG);
     $app = Robo::createDefaultApplication();
     $config = new \Robo\Config();
     \Robo\Robo::configureContainer($container, $app, $config, $input, $this->testPrinter);
     // Set the application dispatcher
     $app->setDispatcher($container->get('eventDispatcher'));
     $this->logger = $container->get('logger');
 }
Ejemplo n.º 2
0
Archivo: Runner.php Proyecto: jjok/Robo
 /**
  * @param array $argv
  * @param null|string $appName
  * @param null|string $appVersion
  * @param null|\Symfony\Component\Console\Output\OutputInterface $output
  *
  * @return int
  */
 public function execute($argv, $appName = null, $appVersion = null, $output = null)
 {
     $argv = $this->shebang($argv);
     $argv = $this->processRoboOptions($argv);
     $app = null;
     if ($appName && $appVersion) {
         $app = Robo::createDefaultApplication($appName, $appVersion);
     }
     $commandFiles = $this->getRoboFileCommands($output);
     return $this->run($argv, $output, $app, $commandFiles);
 }