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

[2.7.1] Zend\Mvc\Controller\Plugin\Forward #90

Closed
ddetyuk opened this issue Mar 3, 2016 · 1 comment
Closed

[2.7.1] Zend\Mvc\Controller\Plugin\Forward #90

ddetyuk opened this issue Mar 3, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@ddetyuk
Copy link

ddetyuk commented Mar 3, 2016

Zend\Mvc\Controller\Plugin\Forward do not detach Zend\Mvc\View\Http\InjectViewModelListener listener

https://github.com/zendframework/zend-mvc/blob/master/src/Controller/Plugin/Forward.php#L195-L196

sould be

    $callbacks = $currentCallback->getCallback();
    if ($callbacks[0] instanceof $class) {
        $sharedEvents->detach($id, $currentCallback);

instead of

    if ($currentCallback instanceof $class) {
        $sharedEvents->detach($currentEvent, $id);
weierophinney added a commit that referenced this issue Mar 8, 2016
weierophinney added a commit that referenced this issue Mar 8, 2016
@weierophinney weierophinney reopened this Mar 8, 2016
@weierophinney
Copy link
Member

Referenced the wrong issue in a commit I pushed; re-opening.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants