Skip to content

Commit

Permalink
minor #53 Use the UrlGeneratorInterface instead of the Router impleme…
Browse files Browse the repository at this point in the history
…ntation (javiereguiluz)

This PR was merged into the master branch.

Discussion
----------

Use the UrlGeneratorInterface instead of the Router implementation

This fixes #51

Commits
-------

f5933a8 Use the UrlGeneratorInterface instead of the Router implementation
  • Loading branch information
javiereguiluz committed Jan 19, 2015
2 parents 50a03cf + f5933a8 commit 6f7004c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Twig/EasyAdminTwigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
namespace JavierEguiluz\Bundle\EasyAdminBundle\Twig;

use Doctrine\ORM\PersistentCollection;
use Symfony\Bundle\FrameworkBundle\Routing\Router;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;

class EasyAdminTwigExtension extends \Twig_Extension
{
Expand All @@ -21,7 +21,7 @@ class EasyAdminTwigExtension extends \Twig_Extension

private $router;

public function __construct(Router $router)
public function __construct(UrlGeneratorInterface $router)
{
$this->router = $router;
}
Expand Down

0 comments on commit 6f7004c

Please sign in to comment.