1
0
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:
Franz Liedke
2015-07-15 23:54:56 +02:00
parent 1675d26723
commit 6a7889934c
2 changed files with 11 additions and 5 deletions

View File

@@ -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);
}
}