Skip to content

Commit

Permalink
Adding a note thanks to Stof
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverryan committed Nov 30, 2015
1 parent 8d61eb6 commit 340ec5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cookbook/form/create_form_type_extension.rst
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ tag:
.. versionadded:: 2.8
The ``extended_type`` option is new in Symfony 2.8. Before, the option was
called ``alias``.
called ``alias``. If you're a bundle author and need to support multiple Symfony
versions, specify *both* ``extended_type`` and ``alias`` (having both will prevent
any deprecation warnings).

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

0 comments on commit 340ec5f

Please sign in to comment.