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
This commit is contained in:
commit
5bfecef595
@ -89,14 +89,14 @@ class Processor
|
||||
*
|
||||
* Here is an example.
|
||||
*
|
||||
* The configuration is XML:
|
||||
* The configuration in XML:
|
||||
*
|
||||
* <twig:extension id="twig.extension.foo" />
|
||||
* <twig:extension id="twig.extension.bar" />
|
||||
* <twig:extension>twig.extension.foo</twig:extension>
|
||||
* <twig:extension>twig.extension.bar</twig:extension>
|
||||
*
|
||||
* And the same configuration in YAML:
|
||||
*
|
||||
* twig.extensions: ['twig.extension.foo', 'twig.extension.bar']
|
||||
* extensions: ['twig.extension.foo', 'twig.extension.bar']
|
||||
*
|
||||
* @param array $config A config array
|
||||
* @param string $key The key to normalize
|
||||
|
Reference in New Issue
Block a user