/** * @return KernelInterface */ public function getKernel() { if (null === $this->httpKernel) { $this->httpKernel = self::createKernel(); $this->httpKernel->boot(); $this->container = $this->httpKernel->getContainer(); } return $this->httpKernel; }