Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Fix for Forward in zend-eventmanager v3 #112

Merged
merged 3 commits into from
Apr 6, 2016

Conversation

rwrz
Copy link
Contributor

@rwrz rwrz commented Mar 31, 2016

Actually,

EventManager returns an ARRAY on $sharedEvents->getListeners and the way it was implemented the listenersToDetach it wasn't working.
I don't know if in V2 it is the same thing, so, this pull request FIX this method and a problem from rendering the View two times.

Like this old bug: http://zend-framework-community.634137.n4.nabble.com/Double-rendering-with-forward-plugin-td4656067i20.html

Someone can check if it works on zend-eventmanager v2?

Thanks,

Rodrigo

Actually,

EventManager returns an ARRAY on `$sharedEvents->getListeners` and the way it was implemented the `listenersToDetach` it wasn't working. 
I don't know if in V2 it is the same thing, so, this pull request FIX this method and a problem from rendering the View two times.

Like this old bug: http://zend-framework-community.634137.n4.nabble.com/Double-rendering-with-forward-plugin-td4656067i20.html

Thanks,

Rodrigo
@weierophinney
Copy link
Member

@rwrz Travis tests against lowest supported, current lockfile, and latest dependencies; the fact you have a green light from Travis indicates it works against zend-eventmanager v2 as well. 😄

}
// v3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment can be removed, as the logic below executes for either version. (I'll do that during merge.)

@weierophinney weierophinney added this to the 2.7.6 milestone Apr 6, 2016
@weierophinney weierophinney self-assigned this Apr 6, 2016
@weierophinney weierophinney merged commit b60730f into zendframework:master Apr 6, 2016
weierophinney added a commit that referenced this pull request Apr 6, 2016
Fix for Forward in zend-eventmanager v3
weierophinney added a commit that referenced this pull request Apr 6, 2016
weierophinney added a commit that referenced this pull request Apr 6, 2016
weierophinney added a commit that referenced this pull request Apr 6, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants