Skip to content

Commit

Permalink
[symfony#4786] Adding a few versionadded's for the changed method name
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverryan authored and javiereguiluz committed Jun 22, 2015
1 parent 3a6c482 commit 9a0282a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions book/forms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,10 @@ you'll need to specify which validation group(s) your form should use::
'validation_groups' => array('registration'),
))->add(...);

.. versionadded:: 2.7
The ``configureOptions()`` method was introduced in Symfony 2.7. Previously,
the method was called ``setDefaultOptions()``.

If you're creating :ref:`form classes <book-form-creating-form-classes>` (a
good practice), then you'll need to add the following to the ``configureOptions()``
method::
Expand Down
4 changes: 4 additions & 0 deletions cookbook/form/create_custom_field_type.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ important:
set) the ``multiple`` attribute on the ``select`` field. See `Creating a Template for the Field`_
for more details.

.. versionadded:: 2.7
The ``configureOptions()`` method was introduced in Symfony 2.7. Previously,
the method was called ``setDefaultOptions()``.

``configureOptions()``
This defines options for your form type that
can be used in ``buildForm()`` and ``buildView()``. There are a lot of
Expand Down

0 comments on commit 9a0282a

Please sign in to comment.