Add settings.callbacks.get

This commit is contained in:
slawkens
2023-07-13 16:47:09 +02:00
parent e83880653a
commit afa1adb90b
3 changed files with 15 additions and 8 deletions

View File

@@ -4,6 +4,7 @@ $deprecatedConfig = [
'template',
'template_allow_change',
'vocations_amount',
'vocations',
'client',
'session_prefix',
'friendly_urls',
@@ -44,11 +45,3 @@ foreach ($deprecatedConfig as $key => $value) {
//var_dump($settings['core.'.$value]['value']);
}
$vocationsParsed = array_map(
function(string $value): string {
return trim($value);
},
explode(',', setting('core.vocations'))
);
config(['vocations', $vocationsParsed]);