1094. Class

1094.1. Zend\ModuleManager\Listener\ConfigListener

Config listener

1094.1.1. Methods

1094.1.1.1. __construct

__construct()

__construct

Parameters:ListenerOptions

1094.1.1.2. attach

attach()

Attach one or more listeners

Parameters:EventManagerInterface
Return type:ConfigListener

1094.1.1.3. onloadModulesPre

onloadModulesPre()

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

Parameters:ModuleEvent
Return type:ConfigListener

1094.1.1.4. onLoadModule

onLoadModule()

Merge the config for each module

Parameters:ModuleEvent
Return type:ConfigListener

1094.1.1.5. onLoadModulesPost

onLoadModulesPost()

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

This is only attached if config is not cached.

Parameters:ModuleEvent
Return type:ConfigListener

1094.1.1.6. detach

detach()

Detach all previously attached listeners

Parameters:EventManagerInterface
Return type:ConfigListener

1094.1.1.7. getMergedConfig

getMergedConfig()

getMergedConfig

Parameters:bool
Return type:mixed

1094.1.1.8. setMergedConfig

setMergedConfig()

setMergedConfig

Parameters:array
Return type:ConfigListener

1094.1.1.9. addConfigGlobPaths

addConfigGlobPaths()

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

Parameters:array|Traversable
Return type:ConfigListener

1094.1.1.10. addConfigGlobPath

addConfigGlobPath()

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

Parameters:string
Return type:ConfigListener

1094.1.1.11. addConfigStaticPaths

addConfigStaticPaths()

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

Parameters:array|Traversable
Return type:ConfigListener

1094.1.1.12. addConfigStaticPath

addConfigStaticPath()

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

Parameters:string
Return type:ConfigListener

1094.1.1.13. addConfigPaths

addConfigPaths()

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

Parameters:
  • Traversable|array
  • string
Throws ExceptionInvalidArgumentException:
 
Return type:

ConfigListener

1094.1.1.14. addConfigPath

addConfigPath()

Add a path of config files to load and merge after loading modules

Parameters:
  • string
  • string
Throws ExceptionInvalidArgumentException:
 
Return type:

ConfigListener

1094.1.1.15. addConfig

addConfig()

@param string $key

Parameters:array|Traversable
Throws ExceptionInvalidArgumentException:
 
Return type:ConfigListener

1094.1.1.16. addConfigByPath

addConfigByPath()

Given a path (glob or static), fetch the config and add it to the array of configs to merge.

Parameters:
  • string
  • string
Return type:

ConfigListener

1094.1.1.17. hasCachedConfig

hasCachedConfig()

@return bool

1094.1.1.18. getCachedConfig

getCachedConfig()

@return mixed

1094.1.2. Constants

1094.1.2.1. STATIC_PATH

1094.1.2.2. GLOB_PATH