Skip to content

Commit 52ce42f

Browse files
Add part about resolving parameter values to prepend extension
1 parent 8af4865 commit 52ce42f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bundles/prepend_extension.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ in case a specific other bundle is not registered::
8282

8383
// process the configuration of AcmeHelloExtension
8484
$configs = $container->getExtensionConfig($this->getAlias());
85+
// resolve config parameters e.g. %kernel.debug% to boolean value
86+
$resolvingBag = $container->getParameterBag();
87+
$configs = $resolvingBag->resolveValue($configs);
8588
// use the Configuration class to generate a config array with
8689
// the settings "acme_hello"
8790
$config = $this->processConfiguration(new Configuration(), $configs);

0 commit comments

Comments
 (0)