EX_CANNOT_OPEN_CONFIG
EX_CANNOT_OPEN_CONFIG = 1
Exception code
Core environment initialization.
initByPath(string $path, array $options = array('registry' => \donbidon\Core\Registry\Recursive::ALL_INCLUSIVE)) : \donbidon\Core\Registry\I_Registry
Initializes environment by config file path.
string | $path | |
array | $options | Array of options:
|
If passed file doesn't exist or cannot be read.
If cannot parse config file.
initByArray(array $config, array $options = array('registry' => \donbidon\Core\Registry\Recursive::ALL_INCLUSIVE)) : \donbidon\Core\Registry\I_Registry
Initializes environment by config array.
array | $config | |
array | $options | Array of options:
|
getRegistry(array $config, integer $options) : \donbidon\Core\Registry\I_Registry
Returns registry instance.
Called from \donbidon\Core\static::initByArray().
array | $config | |
integer | $options |