mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-31 20:13:49 +00:00
fix Twig filter deprecation
This commit is contained in:
@@ -7,6 +7,7 @@ namespace Chill\AMLI\BudgetBundle\Templating;
|
||||
use Twig\Extension\AbstractExtension;
|
||||
use Chill\AMLI\BudgetBundle\Config\ConfigRepository;
|
||||
use Chill\MainBundle\Templating\TranslatableStringHelper;
|
||||
use Twig\TwigFilter;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -39,7 +40,7 @@ class Twig extends AbstractExtension
|
||||
public function getFilters()
|
||||
{
|
||||
return [
|
||||
new \Twig_Filter('budget_element_type_display', [ $this, 'displayLink' ], [ 'is_safe' => [ 'html' ]])
|
||||
new TwigFilter('budget_element_type_display', [ $this, 'displayLink' ], [ 'is_safe' => [ 'html' ]])
|
||||
];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user