Skip to content

Commit 0688f4c

Browse files
committed
Merge branch '4.4' into 5.2
* 4.4: Add part about resolving parameter values to prepend extension Unique validator: Better description for the value placeholder
2 parents e1714db + 685cb2c commit 0688f4c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

bundles/prepend_extension.rst

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

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

reference/constraints/Unique.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ You can use the following parameters in this message:
120120
============================= ================================================
121121
Parameter Description
122122
============================= ================================================
123-
``{{ value }}`` The repeated value
123+
``{{ value }}`` The current (invalid) value
124124
============================= ================================================
125125

126126
.. include:: /reference/constraints/_payload-option.rst.inc

0 commit comments

Comments
 (0)