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

@shealavington
Copy link

@dcblogdev / @nWidart I can see you both seem to maintain this package, would it be possible to look at getting this merged (or another solution) when you can? As the issue it's referencing is currently critical in blocking the upgradeability of this package. For now we can use the previous patch, but it's not the ideal solution, thanks.

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

2 participants