-
Notifications
You must be signed in to change notification settings - Fork 90
[ZF3] [BC-BREAK] Remove ServiceLocatorAwareInterface from AbstractController #4
[ZF3] [BC-BREAK] Remove ServiceLocatorAwareInterface from AbstractController #4
Conversation
Woho 👍 |
👍 |
I hate to be constantly the voice of doom, but this "feature" is a no-starter from a migration stand-point. Let's consider what a user would do on upgrading:
All that, just to get the application back working the way it was. IF you provide a tool that can script the above to aid in migration, I'll consider it, as I really, really hate that I capitulated and made controllers service-aware in the first place. But that tool is going to be necessary if we want folks to actually migrate from ZF2 to ZF3. And I really do, because the migration from ZF1 to ZF2 has not happened, precisely because it's very, very hard. |
PLING!
End of service announcement. Marco Pivetta http://ocramius.github.com/ On 4 June 2015 at 21:06, weierophinney notifications@github.com wrote:
|
@Ocramius I suppose that's exactly what the new middleware approach will be about, but the existing MVC layer still needs some love. @weierophinney Fair point; I'll take the burden to provide a migration tool (which will be full of notices of death). Anything to make this happen... |
@stefanotorresi Many thanks. :) Migration is a key concern; I'm quite happy with most of the changes, but anything that breaks current apps, I really, really want to provide automated migration tooling whenever possible. |
@@ -0,0 +1,16 @@ | |||
<?php | |||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong file block
Supersede by #36 |
As discussed in zendframework/zendframework#5168.
Mantaining BC is actually as easy as implementing
ServiceLocatorAwareInterface
explicitly and importingServiceLocatorAwareTrait
into userland controller classes.This is just one little step towards zendframework/zendframework#6068.