예제 #1
0
 /**
  * Execute the console command.
  *
  * @return void
  */
 public function fire()
 {
     $this->info('for more information visit https://github.com/d11wtq/boris');
     $this->info('press CTRL-D to exit');
     $boris = new \Boris\Boris('smith> ');
     $boris->start();
 }
예제 #2
0
 /**
  * @param InputInterface $input
  * @param OutputInterface $output
  *
  * @return int|null|void
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $boris = new \Boris\Boris('Seriis> ');
     $boris->onStart('$app = \\Seriis\\SeriisApp::getInstance();');
     $boris->onStart('$db = $app->Db;');
     $boris->onStart('$db->persistence = false;');
     $boris->onStart('$cache = $app->Cache;');
     $boris->onStart('echo "Welcome to Boris.\\n Quick usage functions: \\$app, \\$db, \\$cache \\n more to come \\n";');
     $boris->start();
 }
예제 #3
0
<?php

require realpath(__DIR__ . '/../vendor/autoload.php');
require 'drupal_bootstrap.php';
$boris = new \Boris\Boris('drupal> ');
$boris->start();
예제 #4
0
 public function execute(InputInterface $input, OutputInterface $output)
 {
     $boris = new \Boris\Boris(sprintf('%s%s ', $this->shellName, $this->delimiter));
     $boris->setLocal(array('container' => $this->getContainer()));
     $boris->start();
 }