Autarky\Application::resolveKernel PHP Method

resolveKernel() protected method

Resolve the HTTP kernel.
protected resolveKernel ( ) : Symfony\Component\HttpKernel\HttpKernelInterface
return Symfony\Component\HttpKernel\HttpKernelInterface
    protected function resolveKernel()
    {
        if ($this->kernel !== null) {
            return $this->kernel;
        }
        $class = 'Symfony\\Component\\EventDispatcher\\EventDispatcherInterface';
        $eventDispatcher = $this->container->isBound($class) ? $this->container->resolve($class) : null;
        $kernel = new Kernel($this->getRouter(), $this->requests, $this->errorHandler, $eventDispatcher);
        return $this->kernel = $this->resolveStack()->resolve($kernel);
    }