File tree 3 files changed +6
-3
lines changed
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -127,9 +127,10 @@ which HTML form tag(s) is rendered for that field.
127
127
128
128
.. versionadded :: 2.8
129
129
To denote the form type, you have to use the fully qualified class name - like
130
- TextType::class in PHP 5.5+ or ``Symfony\Component\Form\Extension\Core\Type\TextType ``.
130
+ `` TextType::class `` in PHP 5.5+ or ``Symfony\Component\Form\Extension\Core\Type\TextType ``.
131
131
Before Symfony 2.8, you could use an alias for each type like ``text `` or
132
- ``date ``. For more details, see the `2.8 UPGRADE Log `_.
132
+ ``date ``. The old alias syntax will still work until Symfony 3.0. For more details,
133
+ see the `2.8 UPGRADE Log `_.
133
134
134
135
Finally, you added a submit button with a custom label for submitting the form to
135
136
the server.
Original file line number Diff line number Diff line change 113
113
<service id =" app.image_type_extension"
114
114
class =" AppBundle\Form\Extension\ImageTypeExtension"
115
115
>
116
- <tag name =" form.type_extension" extended_type =" Symfony\Component\Form\Extension\Core\Type\FileType" />
116
+ <tag name =" form.type_extension" extended-type =" Symfony\Component\Form\Extension\Core\Type\FileType" />
117
117
</service >
118
118
119
119
.. code-block :: php
Original file line number Diff line number Diff line change @@ -65,3 +65,5 @@ Supported Field Types
65
65
The following field types are natively available in Symfony:
66
66
67
67
.. include :: /reference/forms/types/map.rst.inc
68
+
69
+ .. _`2.8 UPGRADE Log` : https://github.com/symfony/symfony/blob/2.8/UPGRADE-2.8.md#form
You can’t perform that action at this time.
0 commit comments