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