Module loader listener

 Methods

Constructor.

__construct(\Zend\ModuleManager\Listener\ListenerOptions $options) 

Creates an instance of the ModuleAutoloader and injects the module paths into it.

Parameters

Attach one or more listeners

attach(\Zend\EventManager\EventManagerInterface $events) : \Zend\ModuleManager\Listener\LocatorRegistrationListener

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

Parameters

Returns

Detach all previously attached listeners

detach(\Zend\EventManager\EventManagerInterface $events) : void

Get options.

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

inherited_from \Zend\ModuleManager\Listener\AbstractListener::getOptions()

Returns

loadModulesPost

onLoadModulesPost(\Zend\ModuleManager\ModuleEvent $event) 

Unregisters the ModuleLoader and generates the module class map cache.

Parameters

Set options.

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

inherited_from \Zend\ModuleManager\Listener\AbstractListener::setOptions()

Parameters

Returns

getCachedConfig()

getCachedConfig() : array

Returns

array

hasCachedClassMap()

hasCachedClassMap() : bool

Returns

bool

Write a simple array of scalars to a file

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

inherited_from \Zend\ModuleManager\Listener\AbstractListener::writeArrayToFile()

Parameters

$filePath

string

$array

array

Returns

 Properties

 

$generateCache

$generateCache : bool

 

$listeners

$listeners : array

 

$moduleLoader

$moduleLoader : array

 

$options

$options : \Zend\ModuleManager\Listener\ListenerOptions
Inherited

inherited_from \Zend\ModuleManager\Listener\AbstractListener::$$options