Ensures certain extensions are always loaded.
@author Kris Wallsmith <kris@symfony.com>
Expanded class hierarchy of MergeExtensionConfigurationPass
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);
}
}
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 |