zendframework/zf2 — pull request #1233 by weierophinney (2012-05-14 22:35:50+00:00)
Title: Feature/mvc sm viewmanager

This pull request implements the integration between Zend\Mvc and Zend\ServiceManager.

It introduces Zend\Mvc\Service, which contains default configuration for the ServiceManager when used in an application context, as well as a variety of Service Factories.

It introduces Zend\Mvc\View\ViewManager, which takes care of instantiating and configuring the various View listeners and actors, as well as wiring them to the view manager. This work happens during the bootstrap event, at high priority.

Zend\Mvc\Bootstrap is removed, as the functionality is wrapped in Application and the various factories. Application::bootstrap() is when events are wired and the bootstrap event is triggered. Please note that the context for the bootstrap event has shifted to the Application object, and thus application context.

The route and dispatch listeners were separated into discrete classes at this time, and are registered during bootstrap() to listen on their respective events. The dispatcher now uses a scoped service manager container to whitelist controllers and thus close a potential security hole.

All code that interacts with the MVC and/or locators of any kind has been updated.

A PR will be made against the skeleton application to demonstrate how the integration works.