/**
  * After each scenario, reboot the kernel.
  */
 public function reboot()
 {
     Facade::clearResolvedInstances();
     $lumen = new LumenBooter($this->app->basePath());
     $this->context->getSession('lumen')->getDriver()->reboot($this->app = $lumen->boot());
     $this->setAppOnContext();
 }
 /**
  * Boot up Lumen.
  *
  * @param ContainerBuilder $container
  * @param array $config
  * @return mixed
  */
 private function loadLumen(ContainerBuilder $container, array $config)
 {
     $lumen = new LumenBooter($container->getParameter('paths.base'), $config['env_file']);
     $container->set('lumen.app', $app = $lumen->boot());
     return $app;
 }