Skip to content

Conversation

@daniser
Copy link
Contributor

@daniser daniser commented Sep 11, 2025

Simple stub method has been added to manager in order to simplify driver instance decoration.
It can be useful if you want to decorate all your drivers at once with, for example, caching layer or similar.

Current alternatives are:

  • Decorate drivers separately in their own create{...}Driver methods (see CacheManager);
  • Override driver or createDriver method in your manager (too much boilerplate code);
  • Decorate in service provider with extend (downside that it'll decorate only default driver).

@daniser daniser closed this Sep 11, 2025
@daniser
Copy link
Contributor Author

daniser commented Sep 11, 2025

I'm closing this because overriding createDriver while calling parent method is pretty much the same😄

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.

1 participant