- Added docblocks to as many MVC files as possible - Added getServiceLocator() to ServiceLocatorAwareInterface - Removed all LocatorAware interfaces in favor of ServiceLocatorAwareInterfac - Refactored all classes using LocatorAware interfaces to use SLA - Updated ServiceManagerConfiguration to inject EventManagerAware classes - Refactored DispatchListener to remove goto usage - Refactored Application to move all event listener attachments into bootstrap() - Use "router" as base key for router configuration; simplifies RouteFactory, and allows configuring other aspects of router. - Small logic cleanups throughout
- Created ViewManager class for managing creation and composition of various events and objects in the view layer - Registers a number of them as services when done - Application pulls ViewManager from service manager and attaches it to events - ViewManager has an onBootstrap listener that attaches to the bootstrap event at high (10000) priority
…into feature/zen27-di Conflicts: library/Zend/Mvc/Application.php library/Zend/Mvc/ApplicationInterface.php library/Zend/Mvc/Controller/ActionController.php library/Zend/Mvc/Controller/Plugin/Forward.php library/Zend/Mvc/Controller/RestfulController.php
…/zf2 into feature/zen27-stdlib Conflicts: library/Zend/Mvc/ApplicationInterface.php library/Zend/Mvc/Bootstrap.php library/Zend/Mvc/Controller/ActionController.php library/Zend/Mvc/Controller/RestfulController.php library/Zend/Mvc/MvcEvent.php library/Zend/Mvc/Router/Http/TreeRouteStack.php library/Zend/Mvc/View/DefaultRenderingStrategy.php library/Zend/Mvc/View/ExceptionStrategy.php library/Zend/Mvc/View/RouteNotFoundStrategy.php library/Zend/View/View.php library/Zend/View/ViewEvent.php tests/Zend/Mvc/Controller/TestAsset/UnlocatableEventfulController.php
…prolic/zf2 into feature/zen27-event_manager Conflicts: library/Zend/EventManager/ProvidesEvents.php library/Zend/Module/Manager.php library/Zend/Mvc/Application.php library/Zend/Mvc/Controller/ActionController.php library/Zend/Session/ManagerInterface.php library/Zend/Session/SessionManager.php tests/Zend/Mvc/Controller/TestAsset/UnlocatableEventfulController.php tests/Zend/Session/TestAsset/TestManager.php
…ib\DispatchableInterface => use Zend\Stdlib\DispatchableInterface as Dispatchable, Zend\Stdlib\RequestInterface => Zend\Stdlib\RequestInterface as Request, ...
- ArrayTools will now be called ArrayUtils after an anonymous vote (http://framework.zend.com/wiki/display/ZFDEV2/POLL+-+Array+class+name). - Add missing Zend Framework headers to ArrayUtils class file and tests.
- add Stdlib\ArrayTools which combines the following: - Stdlib\RecursiveArrayMerge - Stdlib\IteratorToArray - Stdlib\IsAssocArray - add ArrayTools array testing functionality: - ::isList() - ::isHashTable() - ::hasNumericKeys() - ::hasIntegerKeys() - ::hasStringKeys() - add more exhaustive unit tests for ArrayTools including edge-cases for different types of arrays
- if displayNotFoundReason is enabled, will inject a "reason" variable into the 404 view model returned, with one of the following constant values: - Application::ERROR_CONTROLLER_CANNOT_DISPATCH (controller cannot dispatch the request) - Application::ERROR_CONTROLLER_NOT_FOUND (controller class does not exist) - Application::ERROR_CONTROLLER_INVALID (controller requested is not dispatchable) - Application::ERROR_ROUTER_NO_MATCH (routing returned no match, or no controller in the matches)
…github.com/Danielss89/zf2 into hotfix/application-locator-injection
- Identified two locations in run() where a response was being returned without triggering the "finish" event
- Do not clone the event when triggering dispatch.error after routing failure
- MVC event must be assigned to a local property; otherwise, base view model does not persist - DefaultRenderingStrategy needs to pull the view model from the event, not the result - TemplatePathStack now checks for a file extension; if none found, appends ".phtml"