From dddd0aabb0880c80d73f58578d94d8e36893d892 Mon Sep 17 00:00:00 2001 From: WouterJ Date: Fri, 24 Oct 2014 00:16:45 +0200 Subject: [PATCH] Fixed Form Provider documentation --- doc/providers/form.rst | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/doc/providers/form.rst b/doc/providers/form.rst index 30143eb91..338584fd1 100644 --- a/doc/providers/form.rst +++ b/doc/providers/form.rst @@ -68,15 +68,6 @@ Registering "symfony/config": "~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: @@ -86,13 +77,15 @@ Registering "symfony/security-csrf": "~2.4" } - If you want to use forms in your Twig templates, make sure to install the - Symfony Twig Bridge: + If you want to use forms in your Twig templates, you can also install the + 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 "require": { - "symfony/twig-bridge": "~2.3" + "symfony/twig-bridge": "~2.3", + "symfony/translation": "~2.3" } Usage