-
Notifications
You must be signed in to change notification settings - Fork 821
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
Revert injector type hint to Injector #6945
Revert injector type hint to Injector #6945
Conversation
Yeah — I guess this is is an important point: SilverStripe expects more than a PSR-11 object in place in order to function. It's both a DI container (get) and a generic factory (create). |
Simon E added that, check recently merged PRs |
Oh no, what have I done. I may revert that PR. I should have inspected the output in more detail. |
#6950 to fix |
You don't like the more verbose output, then? |
I would if it were print on error only lol |
Or at least error-or-slow. I wonder if it can be configured? |
According to @Firesphere there is an open issue to get that resolved, but it's not yet possible. |
Fixes issues across the framework where
Injector::inst()-create()
doesn't resolve to anything.