Interface for allowing attachment of shared aggregate listeners.

package Default

 Methods

Attach a listener aggregate

attachAggregate(\Zend\EventManager\SharedListenerAggregateInterface $aggregate, integer $priority = 1) : mixed

Parameters

$aggregate

\Zend\EventManager\SharedListenerAggregateInterface

$priority

integer

If provided, a suggested priority for the aggregate to use

Returns

mixedreturn value of {@link SharedListenerAggregateInterface::attachShared()}

Detach a listener aggregate

detachAggregate(\Zend\EventManager\SharedListenerAggregateInterface $aggregate) : mixed

Parameters

$aggregate

\Zend\EventManager\SharedListenerAggregateInterface

Returns

mixedreturn value of {@link SharedListenerAggregateInterface::detachShared()}