Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the UrlGeneratorInterface instead of the Router implementation #53

Merged
merged 1 commit into from
Jan 19, 2015

Conversation

javiereguiluz
Copy link
Collaborator

This fixes #51

@@ -21,7 +21,7 @@ class EasyAdminTwigExtension extends \Twig_Extension

private $router;

public function __construct(Router $router)
public function __construct(UrlGeneratorInterface $router)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would change the variable names as well so that they don't confuse any looking at the code only.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea! I've changed it for $urlGenerator in 78ab378

@javiereguiluz javiereguiluz merged commit f5933a8 into master Jan 19, 2015
javiereguiluz added a commit that referenced this pull request Jan 19, 2015
…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
@javiereguiluz javiereguiluz deleted the use_interfaces_not_implementations branch January 19, 2015 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change EasyAdminTwigExtension constructor
2 participants