Config
class Config (View source)
The Config class.
Properties
static | $file | The configuration file. | |
static private | $legacy | The legacy .json file. |
Methods
Define default values for all constants that are not overriden.
Define constants based on the configuration array.
Read configuration overrides as JSON string form PHP or JSON file and decode the returned string. Note that now the configuration is stored in PHP files instead of JSON files to make it less easy to access from outside.
Define constant, if not defined already.
Write the configuration file.
Details
at line 62
static
defaults()
Define default values for all constants that are not overriden.
at line 242
static
overrides()
Define constants based on the configuration array.
at line 255
static array
read()
Read configuration overrides as JSON string form PHP or JSON file and decode the returned string. Note that now the configuration is stored in PHP files instead of JSON files to make it less easy to access from outside.
at line 279
static
set(string $name, string $value)
Define constant, if not defined already.
at line 291
static bool
write(array $config)
Write the configuration file.