Skip to content

Commit d131449

Browse files
committed
several other tweaks
1 parent feb68dd commit d131449

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

book/forms.rst

+3-2
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,10 @@ which HTML form tag(s) is rendered for that field.
127127

128128
.. versionadded:: 2.8
129129
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``.
131131
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`_.
133134

134135
Finally, you added a submit button with a custom label for submitting the form to
135136
the server.

cookbook/form/create_form_type_extension.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ tag:
113113
<service id="app.image_type_extension"
114114
class="AppBundle\Form\Extension\ImageTypeExtension"
115115
>
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" />
117117
</service>
118118
119119
.. code-block:: php

reference/forms/types.rst

+2
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,5 @@ Supported Field Types
6565
The following field types are natively available in Symfony:
6666

6767
.. 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

0 commit comments

Comments
 (0)