Implement Twig_Extension_GlobalsInterface to remove deprecation

This commit is contained in:
Nicolas Lœuillet
2016-04-21 22:35:42 +02:00
committed by Jeremy Benoist
parent 8315130a75
commit f997ae6afb

View File

@ -5,7 +5,7 @@ namespace Wallabag\CoreBundle\Twig;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
use Wallabag\CoreBundle\Repository\EntryRepository;
class WallabagExtension extends \Twig_Extension
class WallabagExtension extends \Twig_Extension implements \Twig_Extension_GlobalsInterface
{
private $tokenStorage;
private $repository;