Fully Qualified Name: | Zend\ModuleManager\Listener\DefaultListenerAggregate |
Extends: | AbstractListener |
Implements: | ListenerAggregateInterface |
Default listener aggregate
Name | Description | Defined By |
---|---|---|
__construct() | __construct | AbstractListener |
attach() | Attach one or more listeners | DefaultListenerAggregate |
detach() | Detach all previously attached listeners | DefaultListenerAggregate |
getConfigListener() | Get the config merger. | DefaultListenerAggregate |
getOptions() | Get options. | AbstractListener |
setConfigListener() | Set the config merger to use. | DefaultListenerAggregate |
setOptions() | Set options. | AbstractListener |
__construct
Parameter Name | Type | Description |
---|---|---|
$options | \ListenerOptions |
Returns:
Attach one or more listeners
Parameter Name | Type | Description |
---|---|---|
$events | \EventManagerInterface | |
$priority | int |
Returns: \DefaultListenerAggregate
Detach all previously attached listeners
Parameter Name | Type | Description |
---|---|---|
$events | \EventManagerInterface |
Returns: void
Get the config merger.
Returns: \ConfigMergerInterface
Get options.
Returns: \ListenerOptions
Set the config merger to use.
Parameter Name | Type | Description |
---|---|---|
$configListener | \ConfigMergerInterface |
Returns: \DefaultListenerAggregate
Set options.
Parameter Name | Type | Description |
---|---|---|
$options | \ListenerOptions | the |
Returns: \AbstractListener