class EnvironmentVariables (View source)

PHP $_ENV loader for protecting sensitive configuration options.

Inspired by the wonderful "Dotenv" library by Vance Lucas.

Properties

protected EnvironmentVariablesLoaderInterface $loader

The environment loader implementation.

Methods

void
__construct(EnvironmentVariablesLoaderInterface $loader)

The server environment instance.

load(string $environment = null)

Load the server variables for a given environment.

Details

void __construct(EnvironmentVariablesLoaderInterface $loader)

The server environment instance.

Parameters

EnvironmentVariablesLoaderInterface $loader

Return Value

void

load(string $environment = null)

Load the server variables for a given environment.

Parameters

string $environment