/** * After each scenario, reboot the kernel. */ public function rebootKernel() { $this->kernel->flush(); $laravel = new LaravelBooter($this->kernel->basePath(), $this->kernel->environmentFile()); $this->context->getSession('laravel')->getDriver()->reboot($this->kernel = $laravel->boot()); $this->setAppOnContext(); }
/** * Boot up Laravel. * * @param ContainerBuilder $container * @param array $config * * @return mixed */ private function loadLaravel(ContainerBuilder $container, array $config) { $laravel = new LaravelBooter($container->getParameter('paths.base'), $config['env_path']); $container->set('laravel.app', $app = $laravel->boot()); return $app; }