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 5bfecef

Browse filesBrowse files
committed
merged branch richardmiller/fixing_config_docblock (PR #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
Copy full SHA for 5bfecef

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Config/Definition/Processor.php
+4-4Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.