Ver Fonte

[TwigBundle] fixed grammar for render helper.

fivestar há 14 anos atrás
pai
commit
8367df1265
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/Symfony/Bundle/TwigBundle/Extension/Helpers.php

+ 1 - 1
src/Symfony/Bundle/TwigBundle/Extension/Helpers.php

@@ -47,7 +47,7 @@ class Helpers extends \Twig_Extension
             new HelperTokenParser('route', '<route> [with <arguments:array>]', 'router', 'generate'),
 
             // {% render 'BlogBundle:Post:list' with ['limit': 2], ['alt': 'BlogBundle:Post:error'] %}
-            new HelperTokenParser('render', '<template> [with <attributes:array>, [<options:array>]]', 'actions', 'render'),
+            new HelperTokenParser('render', '<template> [with <attributes:array>[, <options:array>]]', 'actions', 'render'),
 
             // {% flash 'notice' %}
             new HelperTokenParser('flash', '<name>', 'session', 'flash'),