From 144c31c30d5da7c28a3a3219bd1ecf55b9e21dfd Mon Sep 17 00:00:00 2001 From: Thomas Breuss Date: Sat, 30 Jan 2016 16:16:04 +0100 Subject: [PATCH] Removed deprecated Features --- plugins/twig/classes/HerbieExtension.php | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/plugins/twig/classes/HerbieExtension.php b/plugins/twig/classes/HerbieExtension.php index dcfca1bb..b54fd4e3 100644 --- a/plugins/twig/classes/HerbieExtension.php +++ b/plugins/twig/classes/HerbieExtension.php @@ -17,13 +17,13 @@ use Herbie\Page; use Herbie\Site; use Herbie\Http\RedirectResponse; -use Twig_Environment; use Twig_Extension; +use Twig_Extension_GlobalsInterface; use Twig_SimpleFilter; use Twig_SimpleFunction; use Twig_SimpleTest; -class HerbieExtension extends Twig_Extension +class HerbieExtension extends Twig_Extension implements Twig_Extension_GlobalsInterface { private $alias; @@ -32,11 +32,6 @@ class HerbieExtension extends Twig_Extension private $urlGenerator; private $page; - /** - * @var Twig_Environment - */ - private $environment; - public function __construct() { $this->alias = Application::getService('Alias'); @@ -45,14 +40,6 @@ public function __construct() $this->urlGenerator = Application::getService('Url\UrlGenerator'); } - /** - * @param Twig_Environment $environment - */ - public function initRuntime(Twig_Environment $environment) - { - $this->environment = $environment; - } - /** * @return string */