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

Commit

Permalink
[ZF2-273] Back out change to EventManager
Browse files Browse the repository at this point in the history
- s/$listener/$listener->getCallback()/ -- fixes circular lookup issue
  that occurred.
  • Loading branch information
weierophinney committed May 18, 2012
1 parent 21b1728 commit b6905a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EventManager.php
Expand Up @@ -460,7 +460,7 @@ protected function triggerListeners($event, EventInterface $e, $callback = null)
foreach ($listeners as $listener) {
// Trigger the listener's callback, and push its result onto the
// response collection
$responses->push(call_user_func($listener, $e));
$responses->push(call_user_func($listener->getCallback(), $e));

// If the event was asked to stop propagating, do so
if ($e->propagationIsStopped()) {
Expand Down

0 comments on commit b6905a7

Please sign in to comment.