use \Twig_SimpleFilter
The \Twig_Method_Filter has been deprecated.
This commit is contained in:
parent
0aa63c16b2
commit
7f610b1000
|
@ -22,7 +22,7 @@ class SyntaxExtension extends \Twig_Extension
|
|||
public function getFilters()
|
||||
{
|
||||
return array(
|
||||
'format_sql' => new \Twig_Filter_Method($this, 'formatSQL', array('is_safe' => array('html'))),
|
||||
new \Twig_SimpleFilter('format_sql', array($this, 'formatSQL'), array('is_safe' => array('html'))),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue