From 3df6c9ac05feb3777a92f9905224327f71c867a1 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Thu, 28 Jan 2021 22:46:15 +0000 Subject: [PATCH] Updated service provider reference, added phpunit env var --- app/Providers/AppServiceProvider.php | 3 ++- phpunit.xml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 1c6180a1f..7673050f8 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -8,6 +8,7 @@ use BookStack\Entities\Models\Chapter; use BookStack\Entities\Models\Page; use BookStack\Settings\Setting; use BookStack\Settings\SettingService; +use Illuminate\Contracts\Cache\Repository; use Illuminate\Database\Eloquent\Relations\Relation; use Illuminate\Support\Facades\View; use Illuminate\Support\ServiceProvider; @@ -59,7 +60,7 @@ class AppServiceProvider extends ServiceProvider public function register() { $this->app->singleton(SettingService::class, function ($app) { - return new SettingService($app->make(Setting::class), $app->make('Illuminate\Contracts\Cache\Repository')); + return new SettingService($app->make(Setting::class), $app->make(Repository::class)); }); } } diff --git a/phpunit.xml b/phpunit.xml index 8d69a5fdd..033218288 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -55,5 +55,6 @@ +