class SettingsManager

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

Methods

__construct(Framework $Framework, $overridesFile = null)

Create a new settings manager

void
update(array $settings)

Overrides the settings inside of the overrides file this does not merge.

void
merge(array $settings)

Merges these settings in with the other settings from the overrides config file

void
remove(array $settings)

Removes these overrides from the overrides config so we can go back to whatever defaults we need. Not being used as far as I know yet, but it could come in handy soon.

Details

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

Create a new settings manager

Parameters

Framework $Framework
$overridesFile

at line 34
void update(array $settings)

Overrides the settings inside of the overrides file this does not merge.

.. so if you have settings in your overrides file that aren't in the $settings array they will be lost. To keep them we need to use the merge() method instead

Parameters

array $settings

Return Value

void

at line 48
void merge(array $settings)

Merges these settings in with the other settings from the overrides config file

Parameters

array $settings

Return Value

void

at line 66
void remove(array $settings)

Removes these overrides from the overrides config so we can go back to whatever defaults we need. Not being used as far as I know yet, but it could come in handy soon.

..

Parameters

array $settings

Return Value

void