/**
  * @return Container
  */
 private function _buildContainer()
 {
     $this->_generatorConfig->addCompilerPass($this->_storeConfigCompilerPass);
     $this->_generatorConfig->addCompilerPass($this->_injectableCompilerPass);
     $generator = new ContainerGenerator($this->_generatorConfig);
     return $this->_container = $generator->getContainer();
 }
 function it_memoizes_container(Configuration $generatorConfig, StoreConfigCompilerPass $configCompilerPass, InjectableCompilerPass $injectableCompilerPass)
 {
     $generatorConfig->addCompilerPass($configCompilerPass)->shouldBeCalledTimes(1);
     $generatorConfig->addCompilerPass($injectableCompilerPass)->shouldBeCalledTimes(1);
     $container = $this->getContainer();
     $this->getContainer()->shouldBe($container);
 }
 /**
  * @return Container
  */
 private function _buildContainer()
 {
     $this->_generatorConfig->addCompilerPass($this->_storeConfigCompilerPass);
     $this->_generatorConfig->addCompilerPass($this->_injectableCompilerPass);
     $this->_mageApp->dispatchEvent('symfony_container_before_container_generator', ['generator_config' => $this->_generatorConfig]);
     $generator = new ContainerGenerator($this->_generatorConfig);
     return $this->_container = $generator->getContainer();
 }
 function it_memoizes_the_container(MageApp $app, Configuration $generatorConfig, StoreConfigCompilerPass $configCompilerPass, InjectableCompilerPass $injectableCompilerPass)
 {
     $generatorConfig->addCompilerPass($configCompilerPass)->shouldBeCalledTimes(1);
     $generatorConfig->addCompilerPass($injectableCompilerPass)->shouldBeCalledTimes(1);
     $app->dispatchEvent('symfony_container_before_container_generator', ['generator_config' => $generatorConfig])->shouldBeCalled();
     $container = $this->getContainer();
     $this->getContainer()->shouldBe($container);
 }
 function it_memoizes_container(Configuration $generatorConfig)
 {
     $generatorConfig->addCompilerPass(Argument::any())->shouldBeCalledTimes(1);
     $container = $this->getContainer();
     $this->getContainer()->shouldBe($container);
 }
 /**
  * @return Container
  */
 private function _buildContainer()
 {
     $this->_generatorConfig->addCompilerPass(new Inviqa_SymfonyContainer_Model_ExampleCompilerPass());
     $generator = new ContainerGenerator($this->_generatorConfig);
     return $this->_container = $generator->getContainer();
 }