Pārlūkot izejas kodu

[FormView] fix phpDoc

Victor Berchet 14 gadi atpakaļ
vecāks
revīzija
2b99d45dd3
1 mainītis faili ar 5 papildinājumiem un 7 dzēšanām
  1. 5 7
      src/Symfony/Bridge/Twig/Extension/FormExtension.php

+ 5 - 7
src/Symfony/Bridge/Twig/Extension/FormExtension.php

@@ -120,15 +120,13 @@ class FormExtension extends \Twig_Extension
      *
      *     {{ form_widget(view) }}
      *
-     * You can pass attributes element during the call:
+     * You can pass options during the call:
      *
-     *     {{ form_widget(view, {'class': 'foo'}) }}
+     *     {{ form_widget(view, {'attr': {'class': 'foo'}}) }}
+     * 
+     *     {{ form_widget(view, {'separator': '+++++'}) }}
      *
-     * Some fields also accept additional variables as parameters:
-     *
-     *     {{ form_widget(view, {}, {'separator': '+++++'}) }}
-     *
-     * @param FormView        $view       The view to render
+     * @param FormView        $view      The view to render
      * @param array           $variables Additional variables passed to the template
      */
     public function renderWidget(FormView $view, array $variables = array())