auryn
auryn copied to clipboard
Injector::prepare exception
Shouldn't Injector::prepare
throw ConfigException
instead of InjectionException
?
What makes you think so?
Probably because it happens during configuring the injector, not when the injector is making something.
I'm guessing some idiot used InjectionException::fromInvalidCallable because it was there, when they probably should have moved that static method to InjectorException so it can be used as ConfigException::fromInvalidCallable ?
Should be fixed in a9a6146b876fa7f626e8ca41a360e044017b299b
Injector::prepare now throws ConfigException instead of InjectionException