8000 merged branch richardmiller/fixing_config_docblock (PR #5542) · sam57/symfony@5bfecef · GitHub
[go: up one dir, main page]

Skip to content

Commit 5bfecef

Browse files
committed
merged branch richardmiller/fixing_config_docblock (PR symfony#5542)
Commits ------- 1402b42 Fixing config normalisation example in docblock Discussion ---------- Fixing config normalisation example in docblock Against 2.0 this time as per @stof's comments in symfony/symfony-docs#1721 Bug fix: no Feature addition: no Backwards compatibility break: no Symfony2 tests pass: - Fixes the following tickets: - Todo: - License of the code: MIT
2 parents d62f492 + 1402b42 commit 5bfecef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Component/Config/Definition/Processor.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@ public static function normalizeKeys(array $config)
8989
*
9090
* Here is an example.
9191
*
92-
* The configuration is XML:
92+
* The configuration in XML:
9393
*
94-
* <twig:extension id="twig.extension.foo" />
95-
* <twig:extension id="twig.extension.bar" />
94+
* <twig:extension>twig.extension.foo</twig:extension>
95+
* <twig:extension>twig.extension.bar</twig:extension>
9696
*
9797
* And the same configuration in YAML:
9898
*
99-
* twig.extensions: ['twig.extension.foo', 'twig.extension.bar']
99+
* extensions: ['twig.extension.foo', 'twig.extension.bar']
100100
*
101101
* @param array $config A config array
102102
* @param string $key The key to normalize

0 commit comments

Comments
 (0)
0