소스 검색

[TwigBundle] simplified code a bit

Fabien Potencier 14 년 전
부모
커밋
55b343b27c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/Symfony/Bundle/TwigBundle/Extension/TemplatingExtension.php

+ 2 - 2
src/Symfony/Bundle/TwigBundle/Extension/TemplatingExtension.php

@@ -93,9 +93,9 @@ class TemplatingExtension extends \Twig_Extension
         return $this->container->get('templating.helper.assets')->getUrl($location);
     }
 
-    public function getFlash($name)
+    public function getFlash($name, $default = null)
     {
-        return $this->container->get('templating.helper.session')->getFlash($name);
+        return $this->container->get('request')->getSession()->getFlash($name, $default = null);
     }
 
     /**