Module loader listener

package Default
inherited_from \Zend\ModuleManager\Listener\AbstractListener

 Methods

Constructor.

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

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

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

Parameters

$options

\Zend\ModuleManager\Listener\ListenerOptions

__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

loadModulesPost

onLoadModulesPost(\Zend\ModuleManager\ModuleEvent $event) 

Unregisters the ModuleLoader and generates the module class map cache.

Parameters

$event

\Zend\ModuleManager\ModuleEvent

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

getCachedConfig()

getCachedConfig() : array

Returns

array

hasCachedClassMap()

hasCachedClassMap() : boolean

Returns

boolean

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()
 

$generateCache

$generateCache : boolean

Default

 

$moduleLoader

$moduleLoader : array

Default

 

$options

$options : \Zend\ModuleManager\Listener\ListenerOptions

Default