function it_injects_the_kernel_in_kernel_aware_contexts(KernelAwareContext $context, $kernel)
 {
     $context->setKernel($kernel)->shouldBeCalled();
     $this->initializeContext($context);
 }
Example #2
0
 /**
  * Set kernel
  *
  * @param \Symfony\Component\HttpKernel\KernelInterface $kernel
  */
 protected function setContext(KernelAwareContext $context)
 {
     $this->context = $context;
     $this->kernel = $context->getKernel();
 }