Skip to content

Commit 340ec5f

Browse files
committed
Adding a note thanks to Stof
1 parent 8d61eb6 commit 340ec5f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cookbook/form/create_form_type_extension.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ tag:
127127
128128
.. versionadded:: 2.8
129129
The ``extended_type`` option is new in Symfony 2.8. Before, the option was
130-
called ``alias``.
130+
called ``alias``. If you're a bundle author and need to support multiple Symfony
131+
versions, specify *both* ``extended_type`` and ``alias`` (having both will prevent
132+
any deprecation warnings).
131133

132134
The ``extended_type`` key of the tag is the type of field that this extension should
133135
be applied to. In your case, as you want to extend the ``Symfony\Component\Form\Extension\Core\Type\FileType``

0 commit comments

Comments
 (0)