Пример #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();
 }
Пример #5
0
<?php

/**
 * Load Boris REPL when run via `php index.php boris`.
 */
if (!$this->cli) {
    die('Must be run from the command line.');
}
require_once 'lib/vendor/autoload.php';
$boris = new \Boris\Boris('elefant> ');
$boris->setLocal(array('cache' => $cache, 'controller' => $this, 'i18n' => $i18n, 'page' => $page, 'tpl' => $tpl));
$boris->start();