| Fully Qualified Name: | Laminas\ModuleManager\Listener\ConfigListener |
| Extends: | AbstractListener |
| Implements: | ConfigMergerInterface, ListenerAggregateInterface |
Config listener
| 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 |
__construct
| Parameter Name | Type | Description |
|---|---|---|
| $options | \ListenerOptions |
Returns:
Add a glob path of config files to merge after loading modules
| Parameter Name | Type | Description |
|---|---|---|
| $globPath | string |
Returns: \ConfigListener
Add an array of glob paths of config files to merge after loading modules
| Parameter Name | Type | Description |
|---|---|---|
| $globPaths | array|\Traversable |
Returns: \ConfigListener
Add a static path of config files to merge after loading modules
| Parameter Name | Type | Description |
|---|---|---|
| $staticPath | string |
Returns: \ConfigListener
Add an array of static paths of config files to merge after loading modules
| Parameter Name | Type | Description |
|---|---|---|
| $staticPaths | array|\Traversable |
Returns: \ConfigListener
{@inheritDoc}
| Parameter Name | Type | Description |
|---|---|---|
| $events | ||
| $priority |
Returns:
getMergedConfig
| Parameter Name | Type | Description |
|---|---|---|
| $returnConfigAsObject | bool |
Returns: mixed
Get options.
Returns: \ListenerOptions
Merge the config for each module
| Parameter Name | Type | Description |
|---|---|---|
| $e | \ModuleEvent |
Returns: \ConfigListener
Optionally cache merged config
This is only attached if config is not cached.
| Parameter Name | Type | Description |
|---|---|---|
| $e | \ModuleEvent |
Returns: \ConfigListener
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
Pass self to the ModuleEvent object early so everyone has access.
| Parameter Name | Type | Description |
|---|---|---|
| $e | \ModuleEvent |
Returns: \ConfigListener
setMergedConfig
| Parameter Name | Type | Description |
|---|---|---|
| $config | array |
Returns: \ConfigListener
Set options.
| Parameter Name | Type | Description |
|---|---|---|
| $options | \ListenerOptions | the |
Returns: \AbstractListener