|
@@ -74,7 +74,6 @@ class TemplatingExtension extends \Twig_Extension
|
|
|
'url' => new \Twig_Function_Method($this, 'getUrl'),
|
|
|
'path' => new \Twig_Function_Method($this, 'getPath'),
|
|
|
'asset' => new \Twig_Function_Method($this, 'getAssetUrl'),
|
|
|
- 'flash' => new \Twig_Function_Method($this, 'getFlash'),
|
|
|
);
|
|
|
}
|
|
|
|
|
@@ -93,11 +92,6 @@ class TemplatingExtension extends \Twig_Extension
|
|
|
return $this->container->get('templating.helper.assets')->getUrl($location);
|
|
|
}
|
|
|
|
|
|
- public function getFlash($name, $default = null)
|
|
|
- {
|
|
|
- return $this->container->get('request')->getSession()->getFlash($name, $default);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Returns the token parser instance to add to the existing list.
|
|
|
*
|