public function rebootKernel()
    {
        if ($this->context instanceof KernelAwareContext)
        {
            $this->kernel->flush();

            $laravel = new LaravelBooter($this->kernel->basePath(), $this->kernel->environmentFile());

            $this->context->getSession('laravel')->getDriver()->reboot($this->kernel = $laravel->boot());

            $this->setAppOnContext();
        }
    }
public function rebootKernel()
    {
        if ($this->context instanceof KernelAwareContext)
        {
            $this->kernel->flush();

            $laravel = new LaravelBooter($this->kernel->basePath(), $this->kernel->environmentFile());

            $this->context->getSession('laravel')->getDriver()->reboot($this->kernel = $laravel->boot());

            $this->setAppOnContext();
        }
    }
public function rebootKernel ( ) { if ( $ this -> context instanceof KernelAwareContext ) { $ this -> kernel -> flush ( ) ; $ laravel = new LaravelBooter ( $ this -> kernel -> basePath ( ) , $ this -> kernel -> environmentFile ( ) ) ; $ this -> context -> getSession ( 'laravel' ) -> getDriver ( ) -> reboot ( $ this -> kernel = $ laravel -> boot ( ) ) ; $ this -> setAppOnContext ( ) ; } }
After each scenario, reboot the kernel.
After each scenario reboot the kernel .