Commit a085d9e2 authored by Fabien Potencier's avatar Fabien Potencier

fixed Twig Translation extension name to match the one in Symfony

parent f7550e6b
......@@ -14,7 +14,7 @@ namespace Silex\Extension;
use Silex\Application;
use Silex\ExtensionInterface;
use Symfony\Bridge\Twig\Extension\RoutingExtension;
use Symfony\Bridge\Twig\Extension\TransExtension;
use Symfony\Bridge\Twig\Extension\TranslationExtension;
class TwigExtension implements ExtensionInterface
{
......@@ -33,7 +33,7 @@ class TwigExtension implements ExtensionInterface
}
if (isset($app['translator'])) {
$twig->addExtension(new TransExtension($app['translator']));
$twig->addExtension(new TranslationExtension($app['translator']));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment