SettingsManager
class SettingsManager
SettingsManager is used to update the config overrides file which allows an admin to override any config variable in devise
Methods
Create a new settings manager
Overrides the settings inside of the overrides file this does not merge.
Merges these settings in with the other settings from the overrides config file
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
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
at line 48
void
merge(array $settings)
Merges these settings in with the other settings from the overrides config file
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.
..