protected function execute(InputInterface $input, OutputInterface $output) { $this->blink->bootstrap(); $config = new Configuration(); $config->getPresenter()->addCasters($this->casters); $shell = new Shell($config); return $shell->run(); }
/** * Runs interactive shell */ public function actionIndex() { $config = new Configuration(); $config->getPresenter()->addCasters($this->getCasters()); $shell = new Shell($config); $shell->setIncludes($this->include); $shell->run(); }
/** * @return void */ public function fire() { $this->getApplication()->setCatchExceptions(false); $config = new Configuration(); $config->getPresenter()->addCasters($this->getCasters()); $shell = new Shell($config); $shell->addCommands($this->getCommands()); $shell->setIncludes($this->argument('include')); $shell->run(); }
/** * Get instance of the Shell. * @return \Psy\Shell */ public function getShell() { if (!$this->shell) { $config = new Configuration(); $config->getPresenter()->addCasters($this->getCasters()); $this->shell = new Shell($config); $this->shell->addCommands($this->getCommands()); } return $this->shell; }