Listener options

 Methods

Constructor

__construct(array | \Traversable | null $options) 
Inherited

inherited_from \Zend\Stdlib\AbstractOptions::__construct()

Parameters

$options

array\Traversablenull

Get a configuration property

__get(string $key) : mixed
Inherited

see \Zend\Stdlib\ParameterObject::__get()
inherited_from \Zend\Stdlib\AbstractOptions::__get()

Parameters

$key

string

Exceptions

\Zend\Stdlib\Exception\BadMethodCallException

Returns

mixed

Test if a configuration property is null

__isset(string $key) : bool
Inherited

see \Zend\Stdlib\ParameterObject::__isset()
inherited_from \Zend\Stdlib\AbstractOptions::__isset()

Parameters

$key

string

Returns

bool

Set a configuration property

__set(string $key, mixed $value) : void
Inherited

see \Zend\Stdlib\ParameterObject::__set()
inherited_from \Zend\Stdlib\AbstractOptions::__set()

Parameters

$key

string

$value

mixed

Exceptions

\Zend\Stdlib\Exception\BadMethodCallException

Set a configuration property to NULL

__unset(string $key) : void
Inherited

see \Zend\Stdlib\ParameterObject::__unset()
inherited_from \Zend\Stdlib\AbstractOptions::__unset()

Parameters

$key

string

Exceptions

\Zend\Stdlib\Exception\InvalidArgumentException

Get the path where cache file(s) are stored

getCacheDir() : string

Returns

string

Set whether to check dependencies during module loading or not

getCheckDependencies() : string

Returns

string

Check if the config cache is enabled

getConfigCacheEnabled() : bool

Returns

bool

Get the path to the config cache

getConfigCacheFile() : string

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

getConfigCacheKey() : string

Returns

string

Get the glob patterns to load additional config files

getConfigGlobPaths() : array

Returns

array

Get the static paths to load additional config files

getConfigStaticPaths() : array

Returns

array

Get any extra config to merge in.

getExtraConfig() : array | \Traversable

Returns

array\Traversable

Check if the module class map cache is enabled

getModuleMapCacheEnabled() : bool

Returns

bool

Get the path to the module class map cache

getModuleMapCacheFile() : string

Returns

string

Get key used to create the cache file name

getModuleMapCacheKey() : string

Returns

string

Get an array of paths where modules reside

getModulePaths() : array

Returns

array

Normalize a path for insertion in the stack

normalizePath(string $path) : string

Parameters

$path

string

Returns

string

Set the path where cache files can be stored

setCacheDir(string $cacheDir) : \Zend\ModuleManager\Listener\ListenerOptions

Parameters

$cacheDir

string

the value to be set

Returns

Set whether to check dependencies during module loading or not

setCheckDependencies(bool $checkDependencies) : \Zend\ModuleManager\Listener\ListenerOptions

Parameters

$checkDependencies

bool

the value to be set

Returns

Set if the config cache should be enabled or not

setConfigCacheEnabled(bool $enabled) : \Zend\ModuleManager\Listener\ListenerOptions

Parameters

$enabled

bool

Returns

Set key used to create the cache file name

setConfigCacheKey(string $configCacheKey) : \Zend\ModuleManager\Listener\ListenerOptions

Parameters

$configCacheKey

string

the value to be set

Returns

Set the glob patterns to use for loading additional config files

setConfigGlobPaths(array | \Traversable $configGlobPaths) : \Zend\ModuleManager\Listener\ListenerOptions

Parameters

$configGlobPaths

array\Traversable

Exceptions

\Zend\ModuleManager\Listener\Exception\InvalidArgumentException

Returns

Set the static paths to use for loading additional config files

setConfigStaticPaths(array | \Traversable $configStaticPaths) : \Zend\ModuleManager\Listener\ListenerOptions

Parameters

$configStaticPaths

array\Traversable

Exceptions

\Zend\ModuleManager\Listener\Exception\InvalidArgumentException

Returns

Add some extra config array to the main config.

setExtraConfig(array | \Traversable $extraConfig) : \Zend\ModuleManager\Listener\ListenerOptions

This is mainly useful for unit testing purposes.

Parameters

$extraConfig

array\Traversable

Exceptions

\Zend\ModuleManager\Listener\Exception\InvalidArgumentException

Returns

Set one or more configuration properties

setFromArray(array | \Traversable | \Zend\Stdlib\AbstractOptions $options) : \Zend\Stdlib\AbstractOptions
Inherited

inherited_from \Zend\Stdlib\AbstractOptions::setFromArray()

Parameters

$options

array\Traversable\Zend\Stdlib\AbstractOptions

Exceptions

\Zend\Stdlib\Exception\InvalidArgumentException

Returns

\Zend\Stdlib\AbstractOptionsProvides fluent interface

Set if the module class map cache should be enabled or not

setModuleMapCacheEnabled(bool $enabled) : \Zend\ModuleManager\Listener\ListenerOptions

Parameters

$enabled

bool

Returns

Set key used to create the cache file name

setModuleMapCacheKey(string $moduleMapCacheKey) : \Zend\ModuleManager\Listener\ListenerOptions

Parameters

$moduleMapCacheKey

string

the value to be set

Returns

Set an array of paths where modules reside

setModulePaths(array | \Traversable $modulePaths) : \Zend\ModuleManager\Listener\ListenerOptions

Parameters

$modulePaths

array\Traversable

Exceptions

\Zend\ModuleManager\Listener\Exception\InvalidArgumentException

Returns

Cast to array

toArray() : array
Inherited

inherited_from \Zend\Stdlib\AbstractOptions::toArray()

Returns

array

 Properties

 

We use the __ prefix to avoid collisions with properties in user-implementations.

$__strictMode__ : bool
Inherited

inherited_from \Zend\Stdlib\AbstractOptions::$$__strictMode__
 

$cacheDir

$cacheDir : string

 

$checkDependencies

$checkDependencies : bool

 

$configCacheEnabled

$configCacheEnabled : bool

 

$configCacheKey

$configCacheKey : string

 

$configGlobPaths

$configGlobPaths : array

 

$configStaticPaths

$configStaticPaths : array

 

$extraConfig

$extraConfig : array

 

$moduleMapCacheEnabled

$moduleMapCacheEnabled : string

 

$moduleMapCacheKey

$moduleMapCacheKey : string

 

$modulePaths

$modulePaths : array