class FileLoader implements LoaderInterface (View source)

Methods

void
__construct( Filesystem $files, string $defaultPath)

Create a new file configuration loader.

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

Load the given configuration group.

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

Determine if the given group exists.

array
cascadePackage( string $env, string $package, string $group, array $items)

Apply any cascades to an array of package options.

void
addNamespace( string $namespace, string $hint)

Add a new namespace to the loader.

array
getNamespaces()

Returns all registered namespaces with the config loader.

getFilesystem()

Get the Filesystem instance.

Details

at line line 42
void __construct( Filesystem $files, string $defaultPath)

Create a new file configuration loader.

Parameters

Filesystem $files
string $defaultPath

Return Value

void

at line line 56
array load( string $environment, string $group, string $namespace = null)

Load the given configuration group.

Parameters

string $environment
string $group
string $namespace

Return Value

array

at line line 112
bool exists( string $group, string $namespace = null)

Determine if the given group exists.

Parameters

string $group
string $namespace

Return Value

bool

at line line 153
array cascadePackage( string $env, string $package, string $group, array $items)

Apply any cascades to an array of package options.

Parameters

string $env
string $package
string $group
array $items

Return Value

array

at line line 222
void addNamespace( string $namespace, string $hint)

Add a new namespace to the loader.

Parameters

string $namespace
string $hint

Return Value

void

at line line 233
array getNamespaces()

Returns all registered namespaces with the config loader.

Return Value

array

at line line 254
Filesystem getFilesystem()

Get the Filesystem instance.

Return Value

Filesystem