-
Notifications
You must be signed in to change notification settings - Fork 196
Update Migration Guide for v2 #466
Comments
It's mentioned in the zend-servicemanager docs. You can leave those alone until zend-servicemanager v4 is released or use the mentioned workaround:
I'm not sure if we need to add all "edge cases" to the docs if it's mentioned already in the packages itself. |
Well, I just followed the migration guide and started to switch the |
@RalfEggert This is a case where you need to consider which container you are using. If you are not implementing the zend-servicemanager interface(s) when creating factories (the approach we have taken within Expressive and its libraries, as well as the skeleton, in order to keep them container-agnostic), then you can safely change typehints. If you are implementing an interface from another package, you need to check that package before making changes to your signatures. In your case, you were clearly using zend-servicemanager, as you were creating zend-servicemanager interface implementations. As such, you need to consult the zend-servicemanager documentation to see what you need to do to migrate. For that, we already have a page: And it covers this scenario already. The only documentation I can think of would be a note:
Would that "solve" the issue for you? |
Yeah, that simple sentence would lead the users in the right direction and solve this issue. 👍 |
Please note this issue: zendframework/zend-servicemanager#184
Due to this chapter of the migration guide I started to refactor my factories:
http://zendframework.github.io/zend-expressive/reference/migration/to-v2/#psr-11-support
Some of them broke since they depend on the
$requestName
and$options
parameters.The text was updated successfully, but these errors were encountered: