class ExtensionCompilerPass
A pass to automatically process extensions if they implement CompilerPassInterface.
@author Wouter J <wouter@wouterj.nl>
Hierarchy
- class \Symfony\Component\DependencyInjection\Compiler\ExtensionCompilerPass implements \Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface
Expanded class hierarchy of ExtensionCompilerPass
File
-
vendor/
symfony/ dependency-injection/ Compiler/ ExtensionCompilerPass.php, line 22
Namespace
Symfony\Component\DependencyInjection\CompilerView source
class ExtensionCompilerPass implements CompilerPassInterface {
public function process(ContainerBuilder $container) : void {
foreach ($container->getExtensions() as $extension) {
if (!$extension instanceof CompilerPassInterface) {
continue;
}
$extension->process($container);
}
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
ExtensionCompilerPass::process | public | function | You can modify the container here before it is dumped to PHP code. | Overrides CompilerPassInterface::process |