zendframework / zend-mvc-console

Integration between zend-console, zend-router, zend-view, and zend-mvc
BSD 3-Clause "New" or "Revised" License
10 stars 16 forks source link

added failing test case regarding issue #9 #11

Closed tylkomat closed 8 years ago

tylkomat commented 8 years ago

Should be also related to issue #10.

Because of the EventManagerAwareInitializer that is set in ServiceManagerConfig the already configured EventManager in SendResponseListener gets overridden and the ConsoleResponseSender is missing. Therefore any console related response can not be rendered.

weierophinney commented 8 years ago

Because of the EventManagerAwareInitializer that is set in ServiceManagerConfig the already configured EventManager in SendResponseListener gets overridden

As noted in #12, that initializer does not override the EM instance if one is already present, only if none was found and/or it has no SharedEventManager composed.

Thanks for the test case; I'll use this as a starting point for diagnosing the root cause.

weierophinney commented 8 years ago

Please see my comment on #12 for a workaround; I'll have a new version of zend-mvc tagged shortly addressing the issue.

weierophinney commented 8 years ago

To get the fix, please update your zend-mvc to 3.0.3:

$ composer require "zendframework/zend-mvc:^3.0.3"