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

The "router" service is private, getting it from the container is deprecated since Symfony 3.2 and will fail in 4.0 #107

Closed
adrienfr opened this issue Dec 5, 2017 · 1 comment

Comments

@adrienfr
Copy link

adrienfr commented Dec 5, 2017

Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? yes/no
Symfony version 3.4

I got the following deprecation after updating to Symfony 3.4:

User Deprecated: The "router" service is private, getting it from the container is deprecated since Symfony 3.2 and will fail in 4.0. You should either make the service public, or stop using the container directly and use dependency injection instead.

As stated here and here, router is public, so should be its aliases.

@thomas2411
Copy link

+1

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

No branches or pull requests

2 participants