protected function execute(InputInterface $input, OutputInterface $output)
 {
     $application = $this->getApplication();
     $application->setCatchExceptions(false);
     $application->setAutoExit(false);
     $container = $this->getContainer();
     $boris = new Boris('php> ');
     $boris->setLocal(array('container' => $container, 'kernel' => $container->get('kernel')));
     $boris->start();
 }
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $app = $this->getApplication();
     $kernel = $app->getKernel();
     $container = $kernel->getContainer();
     $app->setCatchExceptions(false);
     $boris = new Boris();
     $boris->setPrompt($this->getPrompt());
     $boris->setLocal(array('app' => $app, 'kernel' => $kernel, 'container' => $container) + $this->getServices());
     $boris->start();
 }
Exemple #3
0
 public function ConsoleAction()
 {
     /* @var $request \Zend\Console\Request          */
     /* @var $console \Zend\Console\AdapterInterface */
     $request = $this->getRequest();
     $console = $this->getServiceLocator()->get('console');
     $usingStdout = false;
     $output = STDOUT;
     $console->writeLine("starting console...", Color::GREEN);
     $Application = $this->getServiceLocator()->get('Application');
     $ServiceManager = $this->getServiceLocator()->get('ServiceManager');
     $boris = new Boris();
     $boris->setLocal(['Application' => $Application, 'ServiceManager' => $ServiceManager, 'Console' => $console]);
     $boris->start();
 }
 /**
  * Fire the command.
  */
 public function fire()
 {
     $boris = new Boris('rocketeer> ');
     $boris->setLocal(['rocketeer' => $this->laravel, 'ssh' => $this->laravel['rocketeer.bash']]);
     $boris->start();
 }
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $boris = new Boris('supra> ');
     $boris->setLocal(array('container' => $this->container, 'application' => $this->getApplication()));
     $boris->start();
 }