Config
in package
Class Config
Handles the configuration settings for the application. Provides methods to access and manage configuration options.
Table of Contents
Properties
- $config : array<string|int, mixed>
Methods
- get() : mixed
- Retrieves the value of a specified configuration setting.
- load() : mixed
- Loads the configuration from the specified file path.
Properties
$config
private
static array<string|int, mixed>
$config
= []
Methods
get()
Retrieves the value of a specified configuration setting.
public
static get(string $configuration[, mixed $default = null ]) : mixed
Parameters
- $configuration : string
-
The name of the configuration setting to retrieve.
- $default : mixed = null
-
The default value to return if the configuration setting is not found. Defaults to null.
Return values
mixed —The value of the configuration setting, or the default value if not set.
load()
Loads the configuration from the specified file path.
public
static load(string $path) : mixed
Parameters
- $path : string
-
The path to the configuration file.
Return values
mixed —The loaded configuration data.