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
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C

View file

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