Config
in package
Table of Contents
- DEFAULT_CONFIG_PATH = __DIR__ . '/Config/server.php'
- $config : array<string|int, mixed>
- get() : mixed
- Get config.
- set() : void
- Load default application configs.
Constants
DEFAULT_CONFIG_PATH
private
mixed
DEFAULT_CONFIG_PATH
= __DIR__ . '/Config/server.php'
Tags
Properties
$config
protected
static array<string|int, mixed>
$config
= []
Methods
get()
Get config.
public
static get([string|null $key = null ]) : mixed
Parameters
- $key : string|null = null
-
Key to extract.
Return values
mixed —set()
Load default application configs.
public
static set([string|array<string|int, mixed> $config = null ][, bool $force = false ]) : void
Parameters
- $config : string|array<string|int, mixed> = null
- $force : bool = false