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 ContainerAwareTrait instead of deprecated ContainerAwareCommand #529

Merged
merged 1 commit into from
Oct 16, 2019

Conversation

emodric
Copy link
Contributor

@emodric emodric commented Oct 10, 2019

This gets rid of the deprecation message on Symfony 4.2.

I've copied the getContainer method from ContainerAwareCommand to the command since the intention is to remove the usage of the container anyway for v3 of the bundle.

Copy link
Contributor

@dbu dbu left a comment

Choose a reason for hiding this comment

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

thanks, this is the right fix until we require constructor injection of the httpcache CacheManager in the constructor in version 3 of this bundle.

@dbu dbu merged commit c84007e into FriendsOfSymfony:master Oct 16, 2019
@dbu
Copy link
Contributor

dbu commented Oct 16, 2019

tagged 2.7.2 with this, thank you @emodric

@emodric
Copy link
Contributor Author

emodric commented Oct 16, 2019

Thanks @dbu !

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.

None yet

2 participants