ソースを参照

updated last commit to reflect Twig changes

Fabien Potencier 14 年 前
コミット
bacb472e39

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

@@ -42,7 +42,7 @@ class SecurityExtension extends \Twig_Extension
     public function getGlobals()
     {
         return array(
-            'has_role' => new \Twig_Function($this, 'vote'),
+            'fn_has_role' => new \Twig_Function($this, 'vote'),
         );
     }