Skip to content

Commit 72dc96a

Browse files
committed
[#1788] Adding some :method: syntax, versionadded and other small tweaks to new optional Config additions
1 parent 1ac90eb commit 72dc96a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

components/config/definition.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,14 @@ has a certain value:
214214
215215
Optional Sections
216216
-----------------
217+
218+
.. versionadded:: 2.1
219+
The ``canBeEnabled`` and ``canBeDisabled`` methods are new in Symfony 2.2
220+
217221
If you have entire sections which are optional and can be enabled/disabled,
218-
you can take advantage of the shortcut ``canBeEnabled``, or ``canBeDisabled``::
222+
you can take advantage of the shortcut
223+
:method:`Symfony\\Component\\Config\\Definition\\Builder\\ArrayNodeDefinition::canBeEnabled` and
224+
:method:`Symfony\\Component\\Config\\Definition\\Builder\\ArrayNodeDefinition::canBeDisabled` methods::
219225

220226
$arrayNode
221227
->canBeEnabled()
@@ -232,7 +238,7 @@ you can take advantage of the shortcut ``canBeEnabled``, or ``canBeDisabled``::
232238
->defaultFalse()
233239
;
234240

235-
``canBeDisabled`` looks about the same with the difference that the section
241+
The ``canBeDisabled`` method looks about the same except that the section
236242
would be enabled by default.
237243

238244
Merging options

0 commit comments

Comments
 (0)