BaseConfig
class BaseConfig implements ConfigInterface
Offers basic abstraction over the JSON config. You can extend it and add your own getters for custom parameters.
It's then easier to use them then to remember under which key they are in the paramteres array.
Properties
protected mixed[] | $config |
Methods
No description
Returns all the data in config as associative array
Returns value by key. You can supply default value for when the key is missing.
Returns parameters
section of the config
Returns storage
section of the config
Returns image_parameters
section of the config
Returns authorization
section of the config
Returns action
section of the config
No description
No description
No description
No description
No description
No description
No description
Details
at line 29
__construct(array $config, ConfigurationInterface|null $configDefinition = null)
at line 60
array|null
getData()
Returns all the data in config as associative array
at line 73
mixed
getValue(array $keys, mixed $default = null)
Returns value by key. You can supply default value for when the key is missing.
Without default value exception is thrown for nonexistent keys.
at line 97
array
getParameters()
Returns parameters
section of the config
at line 107
array
getStorage()
Returns storage
section of the config
at line 117
array
getImageParameters()
Returns image_parameters
section of the config
at line 127
array
getAuthorization()
Returns authorization
section of the config
at line 137
string
getAction()
Returns action
section of the config