コード例 #1
0
 /**
  * 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();
 }
コード例 #2
0
 /**
  * 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;
 }