imbo/imbo — pull request #106 by christeredvartsen (2012-11-07 10:40:25+00:00)
Title: Better listener handling

With this PR event listeners can implement custom methods per event they subscribe to. The naming convention is as follows (eventname => methodname):

* `event` => `onEvent()`
* `image.get.pre` => `onImageGetPre()`
* `status.head.post` => `onStatusHeadPost()`

These are not mandatory, but if an event listener subscribes to multiple events it's easier to separate the business logic for each event, instead of having to do:

```php
if ($event->getName() === 'foo') {
// do something
} else if ($event->getName() === 'bar') {
// do something else
}