class EnvironmentFileManager

SettingsManager is used to update the config overrides file which allows an admin to override any config variable in devise

Methods

__construct(Framework $Framework, $envFile = null)

Create a new settings manager

array
save(array $settings)

This will save the settings to the env file

[type]
merge(array $settings)

Merge in environment settings

void
createIfNotExists()

Checks for existence of .env file, if not it creates a new one.

array
get(string $file = null, boolean $settingsOnly = true)

Extract the settings from the env file it should be in format DB_HOST=something and take up no more than one line

Details

at line 17
__construct(Framework $Framework, $envFile = null)

Create a new settings manager

Parameters

Framework $Framework
$envFile

at line 30
array save(array $settings)

This will save the settings to the env file

Parameters

array $settings

Return Value

array

at line 52
[type] merge(array $settings)

Merge in environment settings

Parameters

array $settings

Return Value

[type]

at line 65
void createIfNotExists()

Checks for existence of .env file, if not it creates a new one.

Return Value

void

at line 81
array get(string $file = null, boolean $settingsOnly = true)

Extract the settings from the env file it should be in format DB_HOST=something and take up no more than one line

Parameters

string $file
boolean $settingsOnly

Return Value

array