class EnvironmentVariables (View source)

PHP $_ENV loader for protecting sensitive configuration options.

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

Methods

void
__construct( EnvironmentVariablesLoaderInterface $loader)

The server environment instance.

load( string $environment = null)

Load the server variables for a given environment.

Details

at line line 23
void __construct( EnvironmentVariablesLoaderInterface $loader)

The server environment instance.

Parameters

EnvironmentVariablesLoaderInterface $loader

Return Value

void

at line line 33
load( string $environment = null)

Load the server variables for a given environment.

Parameters

string $environment