Class Yaml
Responsibility - reading/writing config file(s), detecting environment in system config.
- Config file(s) reading: - Reading any config.yaml
file by rel. path with optional env. suffix. - Parsing and typing YAML data into stdClass|array
by key types.
- Config file(s) writing: - Dumping stdClass
es and array
s into YAML syntax string without any other records for different environment (not like core config class). - Storing serialized config data in single process.
- Environment management and detection by: - comparing server and client IP, by value or regular expression. - comparing server hostname or IP, by value or regular expression. - checking system environment variable existence, value or by regular exp.
-
MvcCore\Ext\Configs\Yaml
implements
Iterator,
ArrayAccess,
Countable,
MvcCore\IConfig
uses
MvcCore\Config\PropsGettersSetters,
MvcCore\Config\ReadWrite,
MvcCore\Config\MagicMethods,
MvcCore\Config\Environment,
MvcCore\Ext\Configs\Yamls\YamlProps,
MvcCore\Ext\Configs\Yamls\YamlRead,
MvcCore\Ext\Configs\Yamls\YamlDump
Methods inherited from Iterator
current(),
key(),
next(),
rewind(),
valid()
|
Methods inherited from ArrayAccess
offsetExists(),
offsetGet(),
offsetSet(),
offsetUnset()
|
Methods inherited from Countable
count()
|
Methods inherited from MvcCore\IConfig
ClearConfigCache(),
CreateInstance(),
Dump(),
GetConfig(),
GetData(),
GetEnvironmentDetectionData(),
GetFullPath(),
GetLastChanged(),
GetSystem(),
GetSystemConfigPath(),
IsSystem(),
LoadConfig(),
Read(),
Save(),
SetConfigCache(),
SetData(),
SetSystemConfigPath(),
SetUpEnvironmentData(),
__get(),
__isset(),
__set(),
__unset()
|
Methods used from MvcCore\Config\MagicMethods
__get(),
__isset(),
__set(),
__sleep(),
__unset(),
count(),
current(),
key(),
next(),
offsetExists(),
offsetGet(),
offsetSet(),
offsetUnset(),
rewind(),
valid()
|
Constants summary
string |
VERSION
MvcCore Extension - Config - Yaml - version:
Comparison by PHP function version_compare(); .
MvcCore Extension - Config - Yaml - version:
Comparison by PHP function version_compare(); .
See
http://php.net/manual/en/function.version-compare.php
|
|
Properties used from MvcCore\Config\PropsGettersSetters
$app,
$appRoot,
$configsCache,
$currentData,
$envData,
$environmentNamesFilter,
$fullPath,
$lastChanged,
$mergedData,
$sectionNamesFilter,
$system
|