public function rebootSessionDriver()
 {
     $driver = $this->mink->getSession('silex')->getDriver();
     if ($driver instanceof KernelDriver) {
         $driver->reboot($this->manager->getBootedApplication());
     }
 }
 /**
  * {@inheritdoc}
  */
 public function process(ContainerBuilder $container)
 {
     // get base path
     $basePath = $container->getParameter('paths.base');
     // find and require bootstrap
     $bootstrapPath = $container->getParameter(self::KERNEL_ID . '.bootstrap');
     if (strlen($bootstrapPath) > 0) {
         if (file_exists($bootstrap = $basePath . DIRECTORY_SEPARATOR . $bootstrapPath)) {
             require_once $bootstrap;
         } elseif (file_exists($bootstrapPath)) {
             require_once $bootstrapPath;
         }
     }
     $kernelPath = $container->getParameter(self::KERNEL_ID . '.path');
     $parameters = new Parameters(['env' => $container->getParameter(self::KERNEL_ID . '.env'), 'debug' => $container->getParameter(self::KERNEL_ID . '.debug'), 'appClass' => $container->getParameter(self::KERNEL_ID . '.class'), 'app' => $basePath . DIRECTORY_SEPARATOR . $kernelPath, 'testSession' => $container->getParameter(self::KERNEL_ID . '.testSession')]);
     $kernelManager = new ApplicationManager($parameters);
     $container->set(self::KERNEL_ID, $kernelManager->boot());
     $container->set(self::KERNEL_MANAGER_ID, $kernelManager);
 }
 /**
  * Reboots HttpKernel after each scenario.
  */
 public function rebootKernel()
 {
     $this->kernel = $this->manager->boot();
     $this->initializeContext($this->context);
 }