class MergeExtensionConfigurationPass in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/http-kernel/DependencyInjection/MergeExtensionConfigurationPass.php \Symfony\Component\HttpKernel\DependencyInjection\MergeExtensionConfigurationPass
- 8 vendor/symfony/dependency-injection/Compiler/MergeExtensionConfigurationPass.php \Symfony\Component\DependencyInjection\Compiler\MergeExtensionConfigurationPass
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/DependencyInjection/MergeExtensionConfigurationPass.php \Symfony\Component\HttpKernel\DependencyInjection\MergeExtensionConfigurationPass
Ensures certain extensions are always loaded.
@author Kris Wallsmith <kris@symfony.com>
Hierarchy
- class \Symfony\Component\DependencyInjection\Compiler\MergeExtensionConfigurationPass implements CompilerPassInterface
- class \Symfony\Component\HttpKernel\DependencyInjection\MergeExtensionConfigurationPass
Expanded class hierarchy of MergeExtensionConfigurationPass
2 files declare their use of MergeExtensionConfigurationPass
- Kernel.php in vendor/
symfony/ http-kernel/ Kernel.php - MergeExtensionConfigurationPassTest.php in vendor/
symfony/ http-kernel/ Tests/ DependencyInjection/ MergeExtensionConfigurationPassTest.php
File
- vendor/
symfony/ http-kernel/ DependencyInjection/ MergeExtensionConfigurationPass.php, line 22
Namespace
Symfony\Component\HttpKernel\DependencyInjectionView source
class MergeExtensionConfigurationPass extends BaseMergeExtensionConfigurationPass {
private $extensions;
public function __construct(array $extensions) {
$this->extensions = $extensions;
}
public function process(ContainerBuilder $container) {
foreach ($this->extensions as $extension) {
if (!count($container
->getExtensionConfig($extension))) {
$container
->loadFromExtension($extension, array());
}
}
parent::process($container);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MergeExtensionConfigurationPass:: |
private | property | ||
MergeExtensionConfigurationPass:: |
public | function |
You can modify the container here before it is dumped to PHP code. Overrides MergeExtensionConfigurationPass:: |
|
MergeExtensionConfigurationPass:: |
public | function |