Skip to content

Conversation

tareq-alqadi
Copy link
Contributor

Fixes #2092

The problem occurs when trying to use the module() helper in the register() method
of any service provider, but some dependencies (cache and translator) are not available
at that time during the bootstrap process.

Fixed by:

  • Cache dependency is completely removed since it's not used
  • Translator is accessed only when it's actually available using afterResolving()
  • Module helper can be safely used in service provider register() methods without exceptions

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.

BindingResolutionException after upgrading to 12.0.4
1 participant