class LoadConfiguration (View source)

Methods

void
bootstrap(Application $app)

Bootstrap the given application.

void
loadConfigurationFiles(Application $app, Repository $repository)

Load the configuration items from all of the files.

array
loadConfigurationFile(Repository $repository, string $name, string $path, array $base)

Load the given configuration file.

array
mergeableOptions(string $name)

Get the options within the configuration file that should be merged again.

array
getConfigurationFiles(Application $app)

Get all of the configuration files for the application.

string
getNestedDirectory(SplFileInfo $file, string $configPath)

Get the configuration file nesting path.

array
getBaseConfiguration()

Get the base configuration files.

Details

void bootstrap(Application $app)

Bootstrap the given application.

Parameters

Application $app

Return Value

void

protected void loadConfigurationFiles(Application $app, Repository $repository)

Load the configuration items from all of the files.

Parameters

Application $app
Repository $repository

Return Value

void

Exceptions

Exception

protected array loadConfigurationFile(Repository $repository, string $name, string $path, array $base)

Load the given configuration file.

Parameters

Repository $repository
string $name
string $path
array $base

Return Value

array

protected array mergeableOptions(string $name)

Get the options within the configuration file that should be merged again.

Parameters

string $name

Return Value

array

protected array getConfigurationFiles(Application $app)

Get all of the configuration files for the application.

Parameters

Application $app

Return Value

array

protected string getNestedDirectory(SplFileInfo $file, string $configPath)

Get the configuration file nesting path.

Parameters

SplFileInfo $file
string $configPath

Return Value

string

protected array getBaseConfiguration()

Get the base configuration files.

Return Value

array