Merge pull request #371 from Big-Shark/patch-4
Returned back Twig_SimpleFilter
This commit is contained in:
commit
9a048e8f01
|
@ -21,10 +21,10 @@ class SyntaxExtension extends \Twig_Extension
|
|||
{
|
||||
public function getFilters()
|
||||
{
|
||||
return array(
|
||||
new \Twig_Filter('format_sql', [$this, 'formatSQL'], ['is_safe' => ['html']]),
|
||||
new \Twig_Filter('format_memory', [$this, 'formatMemory']),
|
||||
);
|
||||
return [
|
||||
new \Twig_SimpleFilter('format_sql', [$this, 'formatSQL'], ['is_safe' => ['html']]),
|
||||
new \Twig_SimpleFilter('format_memory', [$this, 'formatMemory']),
|
||||
];
|
||||
}
|
||||
|
||||
public function getName()
|
||||
|
|
Loading…
Reference in a new issue