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

Symfony deprecation warning on grabService() #4752

Closed
ThomasLandauer opened this issue Jan 15, 2018 · 4 comments
Closed

Symfony deprecation warning on grabService() #4752

ThomasLandauer opened this issue Jan 15, 2018 · 4 comments

Comments

@ThomasLandauer
Copy link
Member

This might be related to #4318

When calling $I->grabService() in a functional test, I'm getting this message:

The "XY" 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

  • Codeception version: 2.3.7
@Naktibalda
Copy link
Member

a) it isn't an issue,
b) have you tested if it works with Symfony 4.0 ?

@ThomasLandauer
Copy link
Member Author

b) No, I haven't. The message is from Symfony 3.4.3. Do you think it will "disappear" in Symfony 4.0?

@Naktibalda
Copy link
Member

At least it didn't break Doctrine module.

@ThomasLandauer
Copy link
Member Author

Finally fixed in Codeception 3.1.2 via #5706

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

3 participants