Let custom casts be instantiated by the container #48761
Unanswered
patrickhoogkamer
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was a bit surprised I couldn't inject a dependency via the constructor of a custom casts class. I'm open to create a PR to add it but I would like to know if it would be considered before I put in the effort. Is there a specific reason it isn't already possible? It would add a global call to the container within a Model concern which doesn't seem optimal, but it would improve the usability of custom cast classes greatly in my opinion. Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions