Skip to content

Commit

Permalink
Refactoring twig ContentExtension to allow for any router implementin…
Browse files Browse the repository at this point in the history
…g routerinterface
  • Loading branch information
gmanen committed Nov 24, 2014
1 parent 45a1bc3 commit 382e112
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Twig/Extension/ContentExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Twig_Extension;
use Twig_Function_Method;
use Twig_Environment;
use BeSimple\I18nRoutingBundle\Routing\Router;
use Symfony\Component\Routing\RouterInterface;

use Bigfoot\Bundle\ContentBundle\Entity\Page;
use Bigfoot\Bundle\ContentBundle\Entity\Sidebar;
Expand All @@ -27,7 +27,7 @@ class ContentExtension extends Twig_Extension
/**
* Construct ContentExtension
*/
public function __construct(Twig_Environment $twig, Router $router, EntityManager $entityManager)
public function __construct(Twig_Environment $twig, RouterInterface $router, EntityManager $entityManager)
{
$this->twig = $twig;
$this->router = $router;
Expand Down

0 comments on commit 382e112

Please sign in to comment.