class ExtensionCompilerPass in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/Compiler/ExtensionCompilerPass.php \Symfony\Component\DependencyInjection\Compiler\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 CompilerPassInterface
Expanded class hierarchy of ExtensionCompilerPass
1 file declares its use of ExtensionCompilerPass
- ExtensionCompilerPassTest.php in vendor/
symfony/ dependency-injection/ Tests/ Compiler/ ExtensionCompilerPassTest.php
File
- vendor/
symfony/ dependency-injection/ Compiler/ ExtensionCompilerPass.php, line 22
Namespace
Symfony\Component\DependencyInjection\CompilerView source
class ExtensionCompilerPass implements CompilerPassInterface {
/**
* {@inheritdoc}
*/
public function process(ContainerBuilder $container) {
foreach ($container
->getExtensions() as $extension) {
if (!$extension instanceof CompilerPassInterface) {
continue;
}
$extension
->process($container);
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ExtensionCompilerPass:: |
public | function |
You can modify the container here before it is dumped to PHP code. Overrides CompilerPassInterface:: |