From 6343016b40e51d176b2dc5be93034d7a153d4d91 Mon Sep 17 00:00:00 2001 From: Matthias Pigulla Date: Fri, 25 Aug 2017 15:38:41 +0200 Subject: [PATCH] Fix Twig deprecation notice by implementing Twig_Extension_GlobalsInterface --- Twig/Extension.php | 2 +- composer.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Twig/Extension.php b/Twig/Extension.php index 867e6fe..70649b1 100644 --- a/Twig/Extension.php +++ b/Twig/Extension.php @@ -10,7 +10,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface; -class Extension extends \Twig_Extension +class Extension extends \Twig_Extension implements \Twig_Extension_GlobalsInterface { protected $legacyApplication; diff --git a/composer.json b/composer.json index d79da87..866eebc 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,7 @@ "symfony/http-foundation": "~2.2", "doctrine/annotations": "~1.0", "webfactory/dom": "~1.0, >= 1.0.15", - "twig/twig": "~1.10" + "twig/twig": "^1.23" }