Class ConfigListener

Summary

Fully Qualified Name: Zend\ModuleManager\Listener\ConfigListener
Extends: AbstractListener
Implements: ConfigMergerInterface, ListenerAggregateInterface

Description

Config listener

Methods

Name Description Defined By
__construct() __construct ConfigListener
addConfigGlobPath() Add a glob path of config files to merge after loading modules ConfigListener
addConfigGlobPaths() Add an array of glob paths of config files to merge after loading modules ConfigListener
addConfigStaticPath() Add a static path of config files to merge after loading modules ConfigListener
addConfigStaticPaths() Add an array of static paths of config files to merge after loading modules ConfigListener
attach() {@inheritDoc} ConfigListener
getMergedConfig() getMergedConfig ConfigListener
getOptions() Get options. AbstractListener
onLoadModule() Merge the config for each module ConfigListener
onLoadModules() Optionally cache merged config ConfigListener
onMergeConfig() Merge all config files matched by the given glob()s ConfigListener
onloadModulesPre() Pass self to the ModuleEvent object early so everyone has access. ConfigListener
setMergedConfig() setMergedConfig ConfigListener
setOptions() Set options. AbstractListener

Method Details

__construct()

__construct

Parameter Name Type Description
$options \ListenerOptions

Returns:

addConfigGlobPath()

Add a glob path of config files to merge after loading modules

Parameter Name Type Description
$globPath string

Returns: \ConfigListener

addConfigGlobPaths()

Add an array of glob paths of config files to merge after loading modules

Parameter Name Type Description
$globPaths array|\Traversable

Returns: \ConfigListener

addConfigStaticPath()

Add a static path of config files to merge after loading modules

Parameter Name Type Description
$staticPath string

Returns: \ConfigListener

addConfigStaticPaths()

Add an array of static paths of config files to merge after loading modules

Parameter Name Type Description
$staticPaths array|\Traversable

Returns: \ConfigListener

attach()

{@inheritDoc}

Parameter Name Type Description
$events
$priority

Returns:

getMergedConfig()

getMergedConfig

Parameter Name Type Description
$returnConfigAsObject bool

Returns: mixed

getOptions()

Get options.

Returns: \ListenerOptions

onLoadModule()

Merge the config for each module

Parameter Name Type Description
$e \ModuleEvent

Returns: \ConfigListener

onLoadModules()

Optionally cache merged config

This is only attached if config is not cached.

Parameter Name Type Description
$e \ModuleEvent

Returns: \ConfigListener

onMergeConfig()

Merge all config files matched by the given glob()s

This is only attached if config is not cached.

Parameter Name Type Description
$e \ModuleEvent

Returns: \ConfigListener

onloadModulesPre()

Pass self to the ModuleEvent object early so everyone has access.

Parameter Name Type Description
$e \ModuleEvent

Returns: \ConfigListener

setMergedConfig()

setMergedConfig

Parameter Name Type Description
$config array

Returns: \ConfigListener

setOptions()

Set options.

Parameter Name Type Description
$options \ListenerOptions the

Returns: \AbstractListener

Top