-
Notifications
You must be signed in to change notification settings - Fork 90
Notice: Undefined variable: serviceLocator #149
Conversation
Okay, I see a couple of things. First, as you note, the functionality is removed in zend-servicemanager v3, which means the tests fail if that version is installed. Interestingly, zend-servicemanager-di, which is where we moved the functionality for the zend-mvc v3 release, is tested against both versions, and contains the exact same functionality, albeit with different namespaces. Unfortunately, it contains the same typo. 😦 I'll be doing a PR for that momentarily so we can get a working version in place. My thought is that we do the following:
The above will solve the issue so that zend-mvc v2 continues to work, both against zend-servicemanager v2 and v3. |
…-servicemanager-di (class marked as deprecated in zend-mvc, removed with 3.0 release)
@weierophinney I've updated my PR, please have a look. Thanks. |
@webimpress I was working on similar changes, after reviewing this and zend-servicemanager-di. I took your original changeset and was able to apply it against zend-servicemanager-di (with attribution, even; I used the
This approach is completely BC; the four I created as extensions were returning artifacts from the Thanks for raising the issue, and for your patches! |
@weierophinney thank you, it's much better now, thanks :) |
@weierophinney here it is: fix for #148. I've added some tests, not sure if they are useful because as I can see this part is removed from v3. Let me know please what do you think. Thanks.