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

Deprecate Pool::getContainer method #6475

Merged

Conversation

franmomu
Copy link
Member

Subject

The code that uses this method is already deprecated.

Deprecating this method would lead to better design, forcing the user to use dependency injection instead of getting the container from the Pool service.

Another further refactoring could be to inject a ServiceLocator instead of the whole container.

I am targeting this branch, because these changes are BC.

Changelog

### Deprecated
- Deprecated `Pool::getContainer()` method.

The code that uses this method is already deprecated.
@franmomu franmomu added the minor label Oct 11, 2020
@VincentLanglet VincentLanglet merged commit fd8cb6a into sonata-project:3.x Oct 12, 2020
@VincentLanglet
Copy link
Member

Thanks

@franmomu franmomu deleted the deprecate_pool_container branch October 12, 2020 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants