[FrameworkBundle] Return Event

This commit is contained in:
Drak 2012-03-10 16:07:55 +05:45
parent 876cf96452
commit ca70a351fd
2 changed files with 6 additions and 1 deletions

View File

@ -164,7 +164,7 @@ class ContainerAwareEventDispatcher extends EventDispatcher
{ {
$this->lazyLoad($eventName); $this->lazyLoad($eventName);
parent::dispatch($eventName, $event); return parent::dispatch($eventName, $event);
} }
public function getContainer() public function getContainer()

View File

@ -47,6 +47,9 @@ class TraceableEventDispatcher extends ContainerAwareEventDispatcher implements
$this->called = array(); $this->called = array();
} }
/**
* {@inheritdoc}
*/
public function dispatch($eventName, Event $event = null) public function dispatch($eventName, Event $event = null)
{ {
switch ($eventName) { switch ($eventName) {
@ -87,6 +90,8 @@ class TraceableEventDispatcher extends ContainerAwareEventDispatcher implements
$this->updateProfile($token); $this->updateProfile($token);
break; break;
} }
return $event;
} }
/** /**