Skip to content

Commit 885c378

Browse files
committed
[#4786] Adding a few versionadded's for the changed method name
1 parent 74d2e30 commit 885c378

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

book/forms.rst

+4
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,10 @@ you'll need to specify which validation group(s) your form should use::
470470
'validation_groups' => array('registration'),
471471
))->add(...);
472472

473+
.. versionadded:: 2.7
474+
The ``configureOptions()`` method was introduced in Symfony 2.7. Previously,
475+
the method was called ``setDefaultOptions()``.
476+
473477
If you're creating :ref:`form classes <book-form-creating-form-classes>` (a
474478
good practice), then you'll need to add the following to the ``configureOptions()``
475479
method::

cookbook/form/create_custom_field_type.rst

+4
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ important:
7272
set) the ``multiple`` attribute on the ``select`` field. See `Creating a Template for the Field`_
7373
for more details.
7474

75+
.. versionadded:: 2.7
76+
The ``configureOptions()`` method was introduced in Symfony 2.7. Previously,
77+
the method was called ``setDefaultOptions()``.
78+
7579
``configureOptions()``
7680
This defines options for your form type that
7781
can be used in ``buildForm()`` and ``buildView()``. There are a lot of

0 commit comments

Comments
 (0)