-- Greg <[email protected]> wrote (on Friday, 16 November 2012, 11:44 AM -0600): > In Mvc\Application::bootstrap there is > > $events->attach($serviceManager->get('RouteListener')); > $events->attach($serviceManager->get('DispatchListener')); > $events->attach($serviceManager->get('ViewManager')); > > And SendResponseListener is part of the ViewManager. > > I'm wondering if the ResponseListener should be attached in the bootstrap > instead? E.g > > $events->attach($serviceManager->get('ResponseListener')); > > This would move the SendResponseListener out of the View namespace which > seems better since it doesn't use or require any View objects?
That makes sense to me. I actually plan to make all the factories inside the ViewManager into discrete factory classes as well, so that they can be replaced/overridden easily. That would be a good time to move the SendResponseListener out as well. Can you create an issue for me, please? -- Matthew Weier O'Phinney Project Lead | [email protected] Zend Framework | http://framework.zend.com/ PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc -- List: [email protected] Info: http://framework.zend.com/archives Unsubscribe: [email protected]
