Skip to content

Commit

Permalink
Updated to Twig 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultjunin authored Jan 18, 2020
1 parent 65cb43c commit 5a28cef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/i18nTwigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Twig\Extension\AbstractExtension;
use Twig\TwigFilter;

class i18nTwigExtension extends \Twig_Extension
class i18nTwigExtension extends \Twig\Extension\AbstractExtension
{

private $i18n;
Expand All @@ -17,7 +17,7 @@ public function __construct(i18n $i18n){
public function getFunctions()
{
return array(
new \Twig_SimpleFunction('i18n', [$this, 'i18n']),
new \Twig\TwigFunction('i18n', [$this, 'i18n']),
);
}

Expand All @@ -31,4 +31,4 @@ public function i18n($word)
return "i18n.error ($word)";
}
}
}
}

0 comments on commit 5a28cef

Please sign in to comment.