mirror of
https://github.com/flarum/core.git
synced 2025-10-20 03:06:07 +02:00
Register database and cache implementations as binding for the settings repository
This commit is contained in:
@@ -18,10 +18,6 @@ class Core
|
||||
return $default;
|
||||
}
|
||||
|
||||
if (is_null($value = app('flarum.db')->table('config')->where('key', $key)->pluck('value'))) {
|
||||
$value = $default;
|
||||
}
|
||||
|
||||
return $value;
|
||||
return app('Flarum\Core\Settings\SettingsRepository')->get($key, $default);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user