Commit a3a2bb63 authored by Fabien Potencier's avatar Fabien Potencier

merged branch janschoenherr/patch-1 (PR #571)

This PR was merged into the master branch.

Commits
-------

6b248b0f Update src/Silex/Application.php

Discussion
----------

Update src/Silex/Application.php

EventDispatcher addListener function has no return value

---------------------------------------------------------------------------

by GromNaN at 2013-01-02T15:45:08Z

Exact.
https://github.com/symfony/symfony/blob/master/src/Symfony/Component/EventDispatcher/EventDispatcher.php#L88
parents e1273195 6b248b0f
...@@ -250,7 +250,7 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte ...@@ -250,7 +250,7 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
*/ */
public function on($eventName, $callback, $priority = 0) public function on($eventName, $callback, $priority = 0)
{ {
return $this['dispatcher']->addListener($eventName, $callback, $priority); $this['dispatcher']->addListener($eventName, $callback, $priority);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment