From 340ec5fe82b5be15feec7653a895a2fd1fe7b27a Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Mon, 30 Nov 2015 09:56:10 -0500 Subject: [PATCH] Adding a note thanks to Stof --- cookbook/form/create_form_type_extension.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cookbook/form/create_form_type_extension.rst b/cookbook/form/create_form_type_extension.rst index df290c1e4f4..daaba58df19 100644 --- a/cookbook/form/create_form_type_extension.rst +++ b/cookbook/form/create_form_type_extension.rst @@ -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``