Skip to content

Commit 0339912

Browse files
author
Cédric Girard
committed
replaced use of deprecated Twig_Filter_Method class
1 parent 1799dd9 commit 0339912

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Twig/Extension/CurrencyExtension.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ public function __construct(ContainerInterface $container)
3333
public function getFilters()
3434
{
3535
return array(
36-
'currency_convert' => new \Twig_Filter_Method($this, 'convert'),
37-
'currency_format' => new \Twig_Filter_Method($this, 'format'),
38-
'currency_convert_format' => new \Twig_Filter_Method($this, 'convertAndFormat'),
36+
new \Twig_SimpleFilter('currency_convert', array($this, 'convert')),
37+
new \Twig_SimpleFilter('currency_format', array($this, 'format')),
38+
new \Twig_SimpleFilter('currency_convert_format', array($this, 'convertAndFormat')),
3939
);
4040
}
4141

0 commit comments

Comments
 (0)