Class LocatorRegistrationListener

Summary

Fully Qualified Name: Zend\ModuleManager\Listener\LocatorRegistrationListener
Extends: AbstractListener
Implements: ListenerAggregateInterface

Description

Locator registration listener

Methods

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

Method Details

__construct()

__construct

Parameter Name Type Description
$options \ListenerOptions

Returns:

attach()

{@inheritDoc}

Parameter Name Type Description
$events
$priority

Returns:

getOptions()

Get options.

Returns: \ListenerOptions

onBootstrap()

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

onLoadModule()

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

onLoadModules()

loadModules

Once all the modules are loaded, loop

Parameter Name Type Description
$e \ModuleEvent

Returns: void

setOptions()

Set options.

Parameter Name Type Description
$options \ListenerOptions the

Returns: \AbstractListener

Top