boot() public method

Boot and define the Fork Constants.
public boot ( )
 public function setUp()
 {
     parent::setUp();
     $this->kernel = new AppKernel('test', true);
     $this->kernel->boot();
     $this->container = $this->kernel->getContainer();
 }
Beispiel #2
0
 /**
  * @inheritdoc
  */
 public function doRun(InputInterface $input, OutputInterface $output)
 {
     $this->kernel->boot();
     return parent::doRun($input, $output);
 }
#!/usr/bin/env php
<?php 
require_once 'sys/autoloader.php';
require_once 'config/config.php';
$kernel = new Kernel();
$kernel->boot()->executeCommand();