Config
in package
Table of Contents
Properties
- $conf : array<string, string|int|array<string|int, mixed>|null>
Methods
- __construct() : mixed
- get() : string|int|array<string, mixed>|array<string|int, void>|null
- Returns app config value of the $key property.
- load() : Config
- Loads a config array from file
Properties
$conf
private
array<string, string|int|array<string|int, mixed>|null>
$conf
= []
Methods
__construct()
public
__construct() : mixed
get()
Returns app config value of the $key property.
public
get([string $name = 'app' ][, string $key = null ]) : string|int|array<string, mixed>|array<string|int, void>|null
If no $key is passed returns the entire config array
Parameters
- $name : string = 'app'
- $key : string = null
Return values
string|int|array<string, mixed>|array<string|int, void>|nullload()
Loads a config array from file
private
load(string $name) : Config
Parameters
- $name : string