EnvironmentFileManager
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
at line 30
array
save(array $settings)
This will save the settings to the env file
at line 52
[type]
merge(array $settings)
Merge in environment settings
at line 65
void
createIfNotExists()
Checks for existence of .env file, if not it creates a new one.
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