class Config

Manages the usage of configuration files.

Properties

static protected $configs

Methods

static void
load(string $path)

Load all config files from a directory.

static mixed
get(string $key, mixed $default = null)

Get a configuration value.

static void
set(string $key, mixed $value)

Set a configuration value.

Details

at line 17
static void load(string $path)

Load all config files from a directory.

Parameters

string $path

Path to config directory

Return Value

void

at line 58
static mixed get(string $key, mixed $default = null)

Get a configuration value.

Parameters

string $key

Dot notation key (e.g. "app.name")

mixed $default

Default value if key not found

Return Value

mixed

The configuration value.

at line 78
static void set(string $key, mixed $value)

Set a configuration value.

Parameters

string $key

Dot notation key

mixed $value

Value to set

Return Value

void