LoaderInterface
interface Winter\Storm\Config\LoaderInterface
Methods
public addNamespace (string $namespace, string $hint) : void
Add a new namespace to the loader.
Parameters
Property | Type | Description |
---|---|---|
$namespace | string |
string
|
$hint | string |
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 | Type | Description |
---|---|---|
$environment | string |
string
|
$package | string |
string
|
$group | string |
string
|
$items | array |
array
|
Returns
array
public
exists (string $group, string $namespace = null
)
: bool
Determine if the given configuration group exists.
Parameters
Property | Type | Description |
---|---|---|
$group | string |
string
|
$namespace | string |
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 | Type | Description |
---|---|---|
$environment | string |
string
|
$group | string |
string
|
$namespace | string |
string
|
Returns
array
public registerNamespaceAlias (string $namespace, string $alias) : void
Registers an alias for a given namespace.
Parameters
Property | Type | Description |
---|---|---|
$namespace | string |
string
|
$alias | string |
string
|
Returns
void
Implemented by
Class | Description |
---|---|
FileLoader
|
Copyright © 2024 Winter CMS