Zend\EventManager\EventManager::attachAggregate
Attach a listener aggregate
Listener aggregates accept an EventManagerInterface instance, and call attach() one or more times, typically to attach to multiple events using local methods.
Signature
public function attachAggregate(ListenerAggregateInterface
$aggregate,
[integer
$priority = 1] )
Parameters
$aggregate
— Zend\EventManager\ListenerAggregateInterface
$priority
— integer- If provided, a suggested priority for the aggregate to use
Returns
- mixed
- return value of {@link ListenerAggregateInterface::attach()}