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