/**
  * @param ContainerBuilder $container
  */
 protected function registerCompilerPasses(ContainerBuilder $container)
 {
     foreach ($this->manager->getExtensions() as $extension) {
         $pass = new ExtensionCompilerPass($extension, $this->helper);
         $container->addCompilerPass($pass);
     }
 }
示例#2
0
 public function testGetMissingOtherExtensions()
 {
     $manager = new ExtensionManager($this->extensions);
     $this->assertEquals($this->extensions, $manager->getOtherExtensions(Mockery::mock('PhpTest\\ServiceContainer\\ExtensionInterface')));
 }
示例#3
0
 public function init(ExtensionManager $manager)
 {
     $manager->addExtension(new FunctionalApiExtension());
 }