Skip to content

Conversation

@timmtim
Copy link
Contributor

@timmtim timmtim commented Dec 4, 2017

We use a decorated router in our project that causes problems when depending on the concrete symfony router.

@Nyholm Nyholm requested a review from rvanlaak December 4, 2017 14:45
private $showUntranslatable;

public function __construct(ActivatorInterface $activator, Router $router, Packages $packages, $configName = 'default', $showUntranslatable = true)
public function __construct(ActivatorInterface $activator, RouterInterface $router, Packages $packages, $configName = 'default', $showUntranslatable = true)
Copy link
Member

@rvanlaak rvanlaak Dec 4, 2017

Choose a reason for hiding this comment

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

The response listener doesn't need to access the route collection, so it would even be better to typehint to UrlGeneratorInterface instead, as we only need a contract on generate().

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Check.

@Nyholm
Copy link
Member

Nyholm commented Jan 2, 2018

Great. Thank you!

@Nyholm Nyholm merged commit 4698e76 into php-translation:master Jan 2, 2018
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.

3 participants