Skip to content

Commit

Permalink
Removed deprecated Features
Browse files Browse the repository at this point in the history
  • Loading branch information
tbreuss committed Jan 30, 2016
1 parent 2b63ae8 commit 144c31c
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions plugins/twig/classes/HerbieExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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');
Expand All @@ -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
*/
Expand Down

0 comments on commit 144c31c

Please sign in to comment.