mirror of
https://github.com/flarum/core.git
synced 2025-08-12 03:14:33 +02:00
Use class constant to get qualified class names
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
namespace Flarum\Settings;
|
||||
|
||||
use Flarum\Foundation\AbstractServiceProvider;
|
||||
use Illuminate\Database\ConnectionInterface;
|
||||
|
||||
class SettingsServiceProvider extends AbstractServiceProvider
|
||||
{
|
||||
@@ -23,7 +24,7 @@ class SettingsServiceProvider extends AbstractServiceProvider
|
||||
$this->app->singleton(SettingsRepositoryInterface::class, function () {
|
||||
return new MemoryCacheSettingsRepository(
|
||||
new DatabaseSettingsRepository(
|
||||
$this->app->make('Illuminate\Database\ConnectionInterface')
|
||||
$this->app->make(ConnectionInterface::class)
|
||||
)
|
||||
);
|
||||
});
|
||||
|
Reference in New Issue
Block a user