Fully Qualified Name: | Zend\ModuleManager\Listener\LocatorRegistrationListener |
Extends: | AbstractListener |
Implements: | ListenerAggregateInterface |
Locator registration listener
Name | Description | Defined By |
---|---|---|
__construct() | __construct | AbstractListener |
attach() | {@inheritDoc} | LocatorRegistrationListener |
getOptions() | Get options. | AbstractListener |
onBootstrap() | Bootstrap listener | LocatorRegistrationListener |
onLoadModule() | loadModule | LocatorRegistrationListener |
onLoadModules() | loadModules | LocatorRegistrationListener |
setOptions() | Set options. | AbstractListener |
__construct
Parameter Name | Type | Description |
---|---|---|
$options | \ListenerOptions |
Returns:
{@inheritDoc}
Parameter Name | Type | Description |
---|---|---|
$events | ||
$priority |
Returns:
Get options.
Returns: \ListenerOptions
Bootstrap listener
This is ran during the MVC bootstrap event because it requires access to the DI container.
Parameter Name | Type | Description |
---|---|---|
$e | \MvcEvent |
Returns: void
loadModule
Check each loaded module to see if it implements LocatorRegistered. If it does, we add it to an internal array for later.
Parameter Name | Type | Description |
---|---|---|
$e | \ModuleEvent |
Returns: void
loadModules
Once all the modules are loaded, loop
Parameter Name | Type | Description |
---|---|---|
$e | \ModuleEvent |
Returns: void
Set options.
Parameter Name | Type | Description |
---|---|---|
$options | \ListenerOptions | the |
Returns: \AbstractListener