Methods
__construct
__construct(\Zend\ModuleManager\Listener\ListenerOptions $options)
Add an array of glob paths of config files to merge after loading modules
addConfigGlobPaths(array | \Traversable $globPaths) : \Zend\ModuleManager\Listener\ConfigListener
Parameters
$globPaths
array\Traversable
Returns
Add an array of static paths of config files to merge after loading modules
addConfigStaticPaths(array | \Traversable $staticPaths) : \Zend\ModuleManager\Listener\ConfigListener
Parameters
$staticPaths
array\Traversable
Returns
Attach one or more listeners
attach(\Zend\EventManager\EventManagerInterface $events) : void
Implementors may add an optional $priority argument; the EventManager
implementation will pass this to the aggregate.
Parameters
Detach all previously attached listeners
detach(\Zend\EventManager\EventManagerInterface $events) : void
getMergedConfig
getMergedConfig(bool $returnConfigAsObject) : mixed
Parameters
$returnConfigAsObject
bool
Returns
mixed
Set options.
setOptions(\Zend\ModuleManager\Listener\ListenerOptions $options) : \Zend\ModuleManager\Listener\AbstractListener
Inherited
inherited_from |
\Zend\ModuleManager\Listener\AbstractListener::setOptions() |
Parameters
Returns
Given a path (glob or static), fetch the config and add it to the array
of configs to merge.
addConfigByPath(string $path, string $type) : \Zend\ModuleManager\Listener\ConfigListener
Parameters
$path
string
$type
string
Returns
Add an array of paths of config files to merge after loading modules
addConfigPaths(\Traversable | array $paths, string $type) : \Zend\ModuleManager\Listener\ConfigListener
Parameters
$paths
\Traversablearray
$type
string
Exceptions
Returns
getCachedConfig()
getCachedConfig() : mixed
hasCachedConfig()
hasCachedConfig() : 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
$callbacks
$callbacks : array
$configs
$configs : array
$mergedConfig
$mergedConfig : array
$skipConfig
$skipConfig : bool
Constants