Class ServiceConfig
Read-only wrapper for configuration data
Intended for use with Cake\Core\Container as a typehintable way for services to have application configuration injected as arrays cannot be typehinted.
Namespace: Cake\Core
Method Summary
Method Detail
get() ¶ public
get(string $path, mixed $default = null): mixed
Read a configuration key
Parameters
-
string
$path The path to read.
-
mixed
$default optional The default value to use if $path does not exist.
Returns
mixed
has() ¶ public
has(string $path): bool
Check if $path exists and has a non-null value.
Parameters
-
string
$path The path to check.
Returns
bool