Skip to content

Commit

Permalink
[FrameworkBundle] Return Event
Browse files Browse the repository at this point in the history
  • Loading branch information
Drak committed Mar 10, 2012
1 parent 876cf96 commit ca70a35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Expand Up @@ -164,7 +164,7 @@ public function dispatch($eventName, Event $event = null)
{
$this->lazyLoad($eventName);

parent::dispatch($eventName, $event);
return parent::dispatch($eventName, $event);
}

public function getContainer()
Expand Down
Expand Up @@ -47,6 +47,9 @@ public function __construct(ContainerInterface $container, Stopwatch $stopwatch,
$this->called = array();
}

/**
* {@inheritdoc}
*/
public function dispatch($eventName, Event $event = null)
{
switch ($eventName) {
Expand Down Expand Up @@ -87,6 +90,8 @@ public function dispatch($eventName, Event $event = null)
$this->updateProfile($token);
break;
}

return $event;
}

/**
Expand Down

0 comments on commit ca70a35

Please sign in to comment.