fabpot/Silex — pull request #441 by GromNaN (2012-07-18 09:43:59+00:00)
Title: Add method Application::on($eventName, $callback, $priority)

Simplify PR #435

This method is a shortcut to add a listener to the event dispatcher.

``` php
on(SecurityEvents::SWITCH_USER, function ($event) {
// ...
});
```