Ejemplo n.º 1
0
 /**
  * {@inheritDoc}
  */
 protected function getContainerBuilder()
 {
     $container = parent::getContainerBuilder();
     $environment = $this->getEnvironment();
     $debug = $this->isDebug();
     $containerPassCallback = $this->localKernelContainerBuilder;
     $containerPass = new CustomCallbackCompilerPass($this, $containerPassCallback);
     $container->addCompilerPass($containerPass);
     return $container;
 }
Ejemplo n.º 2
0
 protected function getContainerBuilder()
 {
     $container = parent::getContainerBuilder();
     if (null !== $this->userContainer) {
         $container->merge($this->userContainer);
     }
     return $container;
 }