You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 6, 2020. It is now read-only.
@svycka I've added some stuff about exceptions to the migration docs in #87 - I'd appreciate any feedback.
TL;DR
v2 should continue to throw the old exception
v3 should throw an InvalidServiceException (or an exception extending it)
If it's possible to change the old exception to extend InvalidServiceException while preserving BC I guess that would be the way to go. But as you note in lots of cases it's package-specific but generic (ie Exception\RuntimeException) so I guess BC breakage is inevitable.
Closing; #93 and #96 allow writing tests for this behavior now, and #93 provides a methodology for throwing different exceptions in v2 usage vs v3 usage.
We will be updating the various plugin managers over the coming weeks.
most if not all modules throws incorrect exception not this https://github.com/zendframework/zend-servicemanager/blob/release-2.7/src/AbstractPluginManager.php#L126 examples:
is this correct behavior?
if yes then now in v3 throwing
Zend\ServiceManager\InvalidServiceException
can be BC break?The text was updated successfully, but these errors were encountered: