class FileEnvironmentVariablesLoader implements EnvironmentVariablesLoaderInterface (View source)

Properties

protected Filesystem $files

The filesystem instance.

protected string $path

The path to the configuration files.

Methods

void
__construct(Filesystem $files, string $path = null)

Create a new file environment loader instance.

array
load(string $environment = null)

Load the environment variables for the given environment.

string
getFile(string $environment)

Get the file for the given environment.

Details

void __construct(Filesystem $files, string $path = null)

Create a new file environment loader instance.

Parameters

Filesystem $files
string $path

Return Value

void

array load(string $environment = null)

Load the environment variables for the given environment.

Parameters

string $environment

Return Value

array

protected string getFile(string $environment)

Get the file for the given environment.

Parameters

string $environment

Return Value

string