LoaderInterface

 interface Winter\Storm\Config\LoaderInterface

Methods

public addNamespace (string $namespace, string $hint) : void

Add a new namespace to the loader.

Parameters
Property Description
$namespace
string
$hint
string
Returns
void

public cascadePackage (string $environment, string $package, string $group, array $items) : array

Apply any cascades to an array of package options.

Parameters
Property Description
$environment
string
$package
string
$group
string
$items
array
Returns
array

public exists (string $group, string $namespace = null) : bool

Determine if the given configuration group exists.

Parameters
Property Description
$group
string
$namespace
string
Returns
bool

public getNamespaces () : array

Returns all registered namespaces with the config loader.

Returns
array

public load (string $environment, string $group, string $namespace = null) : array

Load the given configuration group.

Parameters
Property Description
$environment
string
$group
string
$namespace
string
Returns
array

public registerNamespaceAlias (string $namespace, string $alias) : void

Registers an alias for a given namespace.

Parameters
Property Description
$namespace
string
$alias
string
Returns
void
Copyright © 2024 Winter CMS