Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5625491

Browse filesBrowse files
committed
Merge branch '5.2' into 5.x
* 5.2: Add part about resolving parameter values to prepend extension Unique validator: Better description for the value placeholder
2 parents 8922a99 + 0688f4c commit 5625491
Copy full SHA for 5625491

File tree

2 files changed

+6
-1
lines changed
Filter options

2 files changed

+6
-1
lines changed

‎bundles/prepend_extension.rst

Copy file name to clipboardExpand all lines: bundles/prepend_extension.rst
+5Lines 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

Copy file name to clipboardExpand all lines: reference/constraints/Unique.rst
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.