Сhanged Twig filters for 3.0
This commit is contained in:
parent
ec464b1f8f
commit
f112ebe271
1 changed files with 2 additions and 2 deletions
|
|
@ -22,8 +22,8 @@ class SyntaxExtension extends \Twig_Extension
|
|||
public function getFilters()
|
||||
{
|
||||
return array(
|
||||
new \Twig_SimpleFilter('format_sql', array($this, 'formatSQL', array('is_safe' => array('html')))),
|
||||
new \Twig_SimpleFilter('format_memory', array($this, 'formatMemory')),
|
||||
new \Twig_Filter('format_sql', [$this, 'formatSQL'], ['is_safe' => ['html']]),
|
||||
new \Twig_Filter('format_memory', [$this, 'formatMemory']),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue