Fully Qualified Name: | Zend\ModuleManager\Listener\ListenerOptions |
Extends: | AbstractOptions |
Listener options
Name | Description | Defined By |
---|---|---|
__construct() | Constructor | AbstractOptions |
__get() | Get a configuration property | AbstractOptions |
__isset() | Test if a configuration property is null | AbstractOptions |
__set() | Set a configuration property | AbstractOptions |
__unset() | Set a configuration property to NULL | AbstractOptions |
getCacheDir() | Get the path where cache file(s) are stored | ListenerOptions |
getCheckDependencies() | Set whether to check dependencies during module loading or not | ListenerOptions |
getConfigCacheEnabled() | Check if the config cache is enabled | ListenerOptions |
getConfigCacheFile() | Get the path to the config cache | ListenerOptions |
getConfigCacheKey() | Get key used to create the cache file name | ListenerOptions |
getConfigGlobPaths() | Get the glob patterns to load additional config files | ListenerOptions |
getConfigStaticPaths() | Get the static paths to load additional config files | ListenerOptions |
getExtraConfig() | Get any extra config to merge in. | ListenerOptions |
getModuleMapCacheEnabled() | Check if the module class map cache is enabled | ListenerOptions |
getModuleMapCacheFile() | Get the path to the module class map cache | ListenerOptions |
getModuleMapCacheKey() | Get key used to create the cache file name | ListenerOptions |
getModulePaths() | Get an array of paths where modules reside | ListenerOptions |
normalizePath() | Normalize a path for insertion in the stack | ListenerOptions |
setCacheDir() | Set the path where cache files can be stored | ListenerOptions |
setCheckDependencies() | Set whether to check dependencies during module loading or not | ListenerOptions |
setConfigCacheEnabled() | Set if the config cache should be enabled or not | ListenerOptions |
setConfigCacheKey() | Set key used to create the cache file name | ListenerOptions |
setConfigGlobPaths() | Set the glob patterns to use for loading additional config files | ListenerOptions |
setConfigStaticPaths() | Set the static paths to use for loading additional config files | ListenerOptions |
setExtraConfig() | Add some extra config array to the main config. This is mainly useful for unit testing purposes. | ListenerOptions |
setFromArray() | Set one or more configuration properties | AbstractOptions |
setModuleMapCacheEnabled() | Set if the module class map cache should be enabled or not | ListenerOptions |
setModuleMapCacheKey() | Set key used to create the cache file name | ListenerOptions |
setModulePaths() | Set an array of paths where modules reside | ListenerOptions |
setUseZendLoader() | Set a flag indicating if the module manager should use zend-loader | ListenerOptions |
toArray() | Cast to array | AbstractOptions |
useZendLoader() | Whether or not to use zend-loader to autoload modules. | ListenerOptions |
Constructor
Parameter Name | Type | Description |
---|---|---|
$options | array|\Traversable|null |
Returns:
Get a configuration property
Parameter Name | Type | Description |
---|---|---|
$key | string |
Returns: mixed
Test if a configuration property is null
Parameter Name | Type | Description |
---|---|---|
$key | string |
Returns: bool
Set a configuration property
Parameter Name | Type | Description |
---|---|---|
$key | string | |
$value | mixed |
Returns: void
Set a configuration property to NULL
Parameter Name | Type | Description |
---|---|---|
$key | string |
Returns: void
Get the path where cache file(s) are stored
Returns: string|null
Set whether to check dependencies during module loading or not
Returns: bool
Check if the config cache is enabled
Returns: bool
Get the path to the config cache
Should this be an option, or should the dir option include the filename, or should it simply remain hard-coded? Thoughts?
Returns: string
Get key used to create the cache file name
Returns: string
Get the glob patterns to load additional config files
Returns: array
Get the static paths to load additional config files
Returns: array
Get any extra config to merge in.
Returns: array|\Traversable
Check if the module class map cache is enabled
Returns: bool
Get the path to the module class map cache
Returns: string
Get key used to create the cache file name
Returns: string
Get an array of paths where modules reside
Returns: array
Normalize a path for insertion in the stack
Parameter Name | Type | Description |
---|---|---|
$path | string |
Returns: string
Set the path where cache files can be stored
Parameter Name | Type | Description |
---|---|---|
$cacheDir | string|null | the |
Returns: \ListenerOptions
Set whether to check dependencies during module loading or not
Parameter Name | Type | Description |
---|---|---|
$checkDependencies | bool | the |
Returns: \ListenerOptions
Set if the config cache should be enabled or not
Parameter Name | Type | Description |
---|---|---|
$enabled | bool |
Returns: \ListenerOptions
Set key used to create the cache file name
Parameter Name | Type | Description |
---|---|---|
$configCacheKey | string | the |
Returns: \ListenerOptions
Set the glob patterns to use for loading additional config files
Parameter Name | Type | Description |
---|---|---|
$configGlobPaths | array|\Traversable |
Returns: \ListenerOptions Provides fluent interface
Set the static paths to use for loading additional config files
Parameter Name | Type | Description |
---|---|---|
$configStaticPaths | array|\Traversable |
Returns: \ListenerOptions Provides fluent interface
Add some extra config array to the main config. This is mainly useful for unit testing purposes.
Parameter Name | Type | Description |
---|---|---|
$extraConfig | array|\Traversable |
Returns: \ListenerOptions Provides fluent interface
Set one or more configuration properties
Parameter Name | Type | Description |
---|---|---|
$options | array|\Traversable|\AbstractOptions |
Returns: \AbstractOptions Provides fluent interface
Set if the module class map cache should be enabled or not
Parameter Name | Type | Description |
---|---|---|
$enabled | bool |
Returns: \ListenerOptions
Set key used to create the cache file name
Parameter Name | Type | Description |
---|---|---|
$moduleMapCacheKey | string | the |
Returns: \ListenerOptions
Set an array of paths where modules reside
Parameter Name | Type | Description |
---|---|---|
$modulePaths | array|\Traversable |
Returns: \ListenerOptions Provides fluent interface
Set a flag indicating if the module manager should use zend-loader
Setting this option to false will disable ModuleAutoloader, requiring other means of autoloading to be used (e.g., Composer).
If disabled, the AutoloaderProvider feature will be disabled as well
Parameter Name | Type | Description |
---|---|---|
$flag | bool |
Returns: \ListenerOptions
Cast to array
Returns: array
Whether or not to use zend-loader to autoload modules.
Returns: bool