zendframework/zf2 — pull request #3578 by Deserved (2013-01-27 23:47:53+00:00)
Title: Bug: EventManager class, attachAggregatemethod expects second parameter to be $priority.

If $event to attach() method was passed as instance of ListenerAggregateInterface, it will be passed to:

$this->attachAggregate($event, $callback); //where second parameter $callback.

But function reads second parameter to be $priority:

public function attachAggregate(ListenerAggregateInterface $aggregate, $priority = 1)

Fix attached.