public function setKernel(KernelInterface $kernel) {
        $this->kernel = $kernel;
        $this->container = $kernel->getContainer();
    }
public function setKernel(KernelInterface $kernel) {
        $this->kernel = $kernel;
        $this->container = $kernel->getContainer();
    }
public function setKernel ( KernelInterface $ kernel ) { $ this -> kernel = $ kernel ; $ this -> container = $ kernel -> getContainer ( ) ; }
Sets Kernel instance.

@param KernelInterface $kernel
Sets Kernel instance .