public function setUp() { parent::setUp(); $this->kernel = new AppKernel('test', true); $this->kernel->boot(); $this->container = $this->kernel->getContainer(); }
/** * @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();