From e7ba06aaddbde6d779eba06a09958155de52c9e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Nguyen?= Date: Fri, 23 Sep 2016 08:35:15 +0200 Subject: [PATCH 1/2] remove t() extension as it if now handled by Fine itself --- src/Mouf/Html/Renderer/Twig/MoufTwigExtension.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Mouf/Html/Renderer/Twig/MoufTwigExtension.php b/src/Mouf/Html/Renderer/Twig/MoufTwigExtension.php index c0b4e7f..1dbd5b2 100644 --- a/src/Mouf/Html/Renderer/Twig/MoufTwigExtension.php +++ b/src/Mouf/Html/Renderer/Twig/MoufTwigExtension.php @@ -55,11 +55,6 @@ public function getFunctions() */ new \Twig_SimpleFunction('val', [$this, 'getValue']), - /** - * The t function will call the iMsgNoEdit() method of the string passed in parameter - */ - new \Twig_SimpleFunction('t', [$this, 'translate'], array('is_variadic' => true, 'deprecated' => true, 'alternative' => '"t" filter')), - /** * The l function will create a relative URL : in fact, it simply preprends the ROOT_URL */ From fab35067354f7b85fc1abd2cea011aa1450bff63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Nguyen?= Date: Fri, 23 Sep 2016 09:07:08 +0200 Subject: [PATCH 2/2] also remove t filter --- src/Mouf/Html/Renderer/Twig/MoufTwigExtension.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/Mouf/Html/Renderer/Twig/MoufTwigExtension.php b/src/Mouf/Html/Renderer/Twig/MoufTwigExtension.php index 1dbd5b2..003b44a 100644 --- a/src/Mouf/Html/Renderer/Twig/MoufTwigExtension.php +++ b/src/Mouf/Html/Renderer/Twig/MoufTwigExtension.php @@ -72,18 +72,6 @@ public function getFunctions() ); } - /** - * Returns a list of filters to add to the existing list. - * - * @return array An array of filters - */ - public function getFilters() - { - return array( - new \Twig_SimpleFilter('t', [$this, 'translate'], array('is_variadic' => true)), - ); - } - public function toHtml($param) { if ($param == null) {