Locator registration listener

package Default
inherited_from \Zend\ModuleManager\Listener\AbstractListener

 Methods

__construct

__construct(\Zend\ModuleManager\Listener\ListenerOptions $options = null
Inherited

Parameters

$options

\Zend\ModuleManager\Listener\ListenerOptions

Attach one or more listeners

attach(\Zend\EventManager\EventManagerInterface $events) 

Implementors may add an optional $priority argument; the EventManager implementation will pass this to the aggregate.

inherited_from \Zend\EventManager\ListenerAggregateInterface::attach()

Parameters

$events

Detach all previously attached listeners

detach(\Zend\EventManager\EventManagerInterface $events) 
inherited_from \Zend\EventManager\ListenerAggregateInterface::detach()

Parameters

$events

Get options.

getOptions() : \Zend\ModuleManager\Listener\ListenerOptions
Inherited

Returns

\Zend\ModuleManager\Listener\ListenerOptions

Bootstrap listener

onBootstrap(\Zend\EventManager\Event $e) : void

This is ran during the MVC bootstrap event because it requires access to the DI container.

TODO : Check the application / locator / etc a bit better to make sure the env looks how we're expecting it to?

Parameters

$e

\Zend\EventManager\Event

loadModule

onLoadModule(\Zend\ModuleManager\ModuleEvent $e) : void

Check each loaded module to see if it implements LocatorRegistered. If it does, we add it to an internal array for later.

Parameters

$e

\Zend\ModuleManager\ModuleEvent

loadModules

onLoadModules(\Zend\EventManager\Event $e) : void

Once all the modules are loaded, loop

Parameters

$e

\Zend\EventManager\Event

Set options.

setOptions(\Zend\ModuleManager\Listener\ListenerOptions $options) : \Zend\ModuleManager\Listener\AbstractListener
Inherited

Parameters

$options

\Zend\ModuleManager\Listener\ListenerOptions

the value to be set

Returns

\Zend\ModuleManager\Listener\AbstractListener

Write a simple array of scalars to a file

writeArrayToFile(string $filePath, array $array) : \Zend\ModuleManager\Listener\AbstractListener
Inherited

Parameters

$filePath

string

$array

array

Returns

\Zend\ModuleManager\Listener\AbstractListener

 Properties

 

$callbacks

$callbacks : array

Default

array()
 

$modules

$modules : array

Default

array()
 

$options

$options : \Zend\ModuleManager\Listener\ListenerOptions

Default