Merge pull request #369 from Big-Shark/patch-2
Сhanged Twig filters for 3.0
This commit is contained in:
commit
9b39fe926d
|
@ -22,8 +22,8 @@ class SyntaxExtension extends \Twig_Extension
|
||||||
public function getFilters()
|
public function getFilters()
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
new \Twig_SimpleFilter('format_sql', array($this, 'formatSQL', array('is_safe' => array('html')))),
|
new \Twig_Filter('format_sql', [$this, 'formatSQL'], ['is_safe' => ['html']]),
|
||||||
new \Twig_SimpleFilter('format_memory', array($this, 'formatMemory')),
|
new \Twig_Filter('format_memory', [$this, 'formatMemory']),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue