diff --git a/src/Symfony/Bundle/FrameworkBundle/ContainerAwareEventDispatcher.php b/src/Symfony/Bundle/FrameworkBundle/ContainerAwareEventDispatcher.php index b88625870e..0ce875bcee 100644 --- a/src/Symfony/Bundle/FrameworkBundle/ContainerAwareEventDispatcher.php +++ b/src/Symfony/Bundle/FrameworkBundle/ContainerAwareEventDispatcher.php @@ -164,7 +164,7 @@ class ContainerAwareEventDispatcher extends EventDispatcher { $this->lazyLoad($eventName); - parent::dispatch($eventName, $event); + return parent::dispatch($eventName, $event); } public function getContainer() diff --git a/src/Symfony/Bundle/FrameworkBundle/Debug/TraceableEventDispatcher.php b/src/Symfony/Bundle/FrameworkBundle/Debug/TraceableEventDispatcher.php index c2116ea663..d198fc9308 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Debug/TraceableEventDispatcher.php +++ b/src/Symfony/Bundle/FrameworkBundle/Debug/TraceableEventDispatcher.php @@ -47,6 +47,9 @@ class TraceableEventDispatcher extends ContainerAwareEventDispatcher implements $this->called = array(); } + /** + * {@inheritdoc} + */ public function dispatch($eventName, Event $event = null) { switch ($eventName) { @@ -87,6 +90,8 @@ class TraceableEventDispatcher extends ContainerAwareEventDispatcher implements $this->updateProfile($token); break; } + + return $event; } /**