public static function run() { $container = new Container(); $container->configure(); self::loadConfig($container); $container->build(); $container->get('console.application')->run(); }
protected function runCommand($commandName, array $arguments) { $container = new Container(); $container->configure(); $container->build(); $application = $container->get('console.application'); $command = $application->find($commandName); $tester = new CommandTester($command); $tester->execute($arguments); return $tester; }