$config
$config : array<mixed,>
Trait implementing reading from config-file and storing options in $this->config.
configure(array|string $what) : self
Read configuration from file or array, if a file, first check in ANAX_APP_PATH/config and then in ANAX_INSTALL_PATH/config.
| array|string | $what | is an array with key/value config options or a file to be included which returns such an array. |
when argument if not a file nor an array.
for chaining.
getConfig(string $key, string $default = null) : mixed
Helper function for reading values from the configuration and appy default values where configuration item is missing.
| string | $key | matching a key in the config array. |
| string | $default | value returned when config item is not found. |
or null if key does not exists.