예제 #1
0
 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();
 }
예제 #2
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     // Prevent PHP notice.
     $_SERVER['REMOTE_ADDR'] = '127.0.0.1';
     define('DRUPAL_ROOT', __DIR__ . '/../../../../../..');
     require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
     drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
     $this->getApplication()->setCatchExceptions(false);
     $boris = new Boris();
     $boris->setPrompt('oxygen> ');
     $boris->start();
 }
예제 #3
0
 public function initialize(\Boris\Boris $boris, $dir)
 {
     $boris->setPrompt($this->name . '> ');
 }