diff --git a/changelog.rst b/changelog.rst index 0a842a17e8a..02fafc658ad 100644 --- a/changelog.rst +++ b/changelog.rst @@ -365,6 +365,7 @@ Minor Documentation Changes - `3be0081 `_ #4976 Improved sentence (edsonmedina) - `a444220 `_ #4885 Fix typos (ifdattic) - `482502d `_ #4793 [Contributing] Several tweaks (xelaris) +- `a2395ef `_ #5054 [Changelog] fix changelog syntax (xabbuh) - `6b66f03 `_ #5003 Updated the generic Deployment article (javiereguiluz) - `39a1487 `_ #4999 Fixed semantic error (beni0888) @@ -405,7 +406,6 @@ Minor Documentation Changes - `1726054 `_ #4500 Link to standard edition (harikt) - `91ff6f8 `_ #4329 ensure consistency with the note (greg0ire) - `f4ab4b6 `_ #5002 Revert very bad merge (WouterJ) -- `e747392 `_ Revert "#4977 Unnecessary comma (edsonmedina)" - `e5dbd49 `_ #4977 Unnecessary comma (edsonmedina) - `ed80100 `_ #4977 Unnecessary comma (edsonmedina) - `5d44987 `_ #4991 Fixed typo and tweaked syntax. (cdvrooman) diff --git a/components/config/definition.rst b/components/config/definition.rst index 27beb52e4d6..1dc62736b4f 100644 --- a/components/config/definition.rst +++ b/components/config/definition.rst @@ -295,6 +295,31 @@ the ``config:dump`` command. Since Symfony 2.6, the info will also be added to the exception message when an invalid type is given. +.. code-block:: php + + $rootNode + ->children() + ->inetegerNode('entries_per_page') + ->info('This value is only used for the search results page.') + ->devaultValue(25) + ->end() + ->end() + ; + +In YAML you may have: + +.. code-block:: yaml + + # This value is only used for the search results page. + entries_per_page: 25 + +and in XML: + +.. code-block:: xml + + + + Optional Sections -----------------