Skip to content

[5.8] Replace global helper with container call in Exception Handler #29635

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

Closed
wants to merge 2 commits into from
Closed

[5.8] Replace global helper with container call in Exception Handler #29635

wants to merge 2 commits into from

Conversation

antonkomarev
Copy link
Contributor

As @crynobone noted in #29564 we could use container instead of global helper method.

@taylorotwell
Copy link
Member

Doesn't matter either way. This is within the foundation component.

@antonkomarev
Copy link
Contributor Author

That seems strange to me, because we already have container instantiated, why should we reinstantiate it using global helper?

@deleugpn
Copy link
Contributor

The container is a singleton and does not get reinstantiated with the global helper?

@antonkomarev
Copy link
Contributor Author

Yes, but if it's already assigned in class field, why shouldn't we use it instead?

@antonkomarev antonkomarev deleted the refactor/use-container-instead-of-global-helper-method branch September 10, 2019 19:22
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.

4 participants