Commit cbbdfd0b authored by Fabien Potencier's avatar Fabien Potencier

minor #1043 Fixed Form Provider documentation (WouterJ)

This PR was submitted for the master branch but it was merged into the 1.2 branch instead (closes #1043).

Discussion
----------

Fixed Form Provider documentation

The Locale component is replaced by the Intl and Icu components, which are taken care of by Composer.

The twig bridge also does not work without translation, as far as I tested.

Commits
-------

dddd0aab Fixed Form Provider documentation
parents 1b8bea92 dddd0aab
...@@ -68,15 +68,6 @@ Registering ...@@ -68,15 +68,6 @@ Registering
"symfony/config": "~2.3", "symfony/config": "~2.3",
"symfony/translation": "~2.3" "symfony/translation": "~2.3"
} }
The Symfony Form Component relies on the PHP intl extension. If you don't have
it, you can install the Symfony Locale Component as a replacement:
.. code-block:: json
"require": {
"symfony/locale": "~2.3"
}
The Symfony Security CSRF component is used to protect forms against CSRF attacks: The Symfony Security CSRF component is used to protect forms against CSRF attacks:
...@@ -86,13 +77,15 @@ Registering ...@@ -86,13 +77,15 @@ Registering
"symfony/security-csrf": "~2.4" "symfony/security-csrf": "~2.4"
} }
If you want to use forms in your Twig templates, make sure to install the If you want to use forms in your Twig templates, you can also install the
Symfony Twig Bridge: Symfony Twig Bridge. Make sure to install, if you didn't do that already,
the Translation component in order for the bridge to work:
.. code-block:: json .. code-block:: json
"require": { "require": {
"symfony/twig-bridge": "~2.3" "symfony/twig-bridge": "~2.3",
"symfony/translation": "~2.3"
} }
Usage Usage
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment