Updating the regex route to do a rawurldecode when
parsing params, previously the use of urldecode
would erroneously turn + characters into spaces.
small speed-up Zend\EventManager\EventManager::triggerListener()
Add minor test coverage to MvcEvent
preserve matched route name within route match instance while forwarding from controller
Zend\Code looks for Zend\EventManager in more places than just Zend\Code\Annotation, so add it to composer.json. Using Zend\Di as a standalone component, for instance, will fail without Zend\EventManager.
Updating all http routes to use rawurlencode and rawurldecode when
dealing with path segments. The previous use of urlencode/decode
would erroneously transform + characters into spaces.

Also updated tests with new checks to verify all characters which
don't absolutely require encoding pass through unchanged and that
encoding works correctly for all characters (even if they do not
strictly speaking require it).
Make Partial proxy to view render function
CS
Reintroduce logic in Partial for compatibility
Allow Accept-Encoding header to be overridden by request headers
Fix for #2541
Controller action HttpResponse is not used by SendResponseListener

SendResponseListener is getting the response from the event via the getResponse, whereas the actual HttpResponse returned by the controller action is stored as the result for that event.

    public function indexAction()
    {
        //return new ViewModel();
        $response = new \Zend\Http\PhpEnvironment\Response();
        $response->setContent('OK');

        return $response;
    }

This is a little confusing given that the AbstractController will stop dispatching when the returned value is a Response instance.

        $result = $this->getEventManager()->trigger(MvcEvent::EVENT_DISPATCH, $e, function($test) {
            return ($test instanceof Response);
        });


And then the SendResponseLister is pulling from getResponse()

    public function sendResponse(MvcEvent $e)
    {
        $response = $e->getResponse();
        var_dump($response, $e->getResult()); //these instances differ



It seems like the Mvc\Application should set the result Response as the event response?

        $response = $result->last();
        if ($response instanceof ResponseInterface) {
            $event->setTarget($this);
            $event->setResponse($response); //set response for SendResponseListener


Or is this an implementation detail rather than a bug?
Add class to file missing a class (fixes #2789)
Add empty class to file missing a class (fixes #2787)
Session: fixed Zend\Session\Container::exchangeArray
Remove classes
Remove class (fixes #2788)
update master's resources/ja Zend_Validate.php message
Adding failing test for zendframework/zf2#2497
Applying fix for failing test of zendframework/zf2#2497