Method |
Description |
|
__construct ( Framework $Framework, $envFile = null ) |
Create a new settings manager |
|
createIfNotExists ( ) : void |
Checks for existence of .env file, if not
it creates a new one. |
|
get ( string $file = null, boolean $settingsOnly = true ) : array |
Extract the settings from the env file
it should be in format DB_HOST=something
and take up no more than one line |
|
merge ( array $settings ) : [type] |
Merge in environment settings |
|
save ( array $settings ) : array |
This will save the settings to the env file |
|