Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 340ec5f

Browse filesBrowse files
committed
Adding a note thanks to Stof
1 parent 8d61eb6 commit 340ec5f
Copy full SHA for 340ec5f

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed

‎cookbook/form/create_form_type_extension.rst

Copy file name to clipboardExpand all lines: cookbook/form/create_form_type_extension.rst
+3-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.