Updated service provider reference, added phpunit env var

This commit is contained in:
Dan Brown 2021-01-28 22:46:15 +00:00
parent 2db081938f
commit 3df6c9ac05
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -55,5 +55,6 @@
<server name="API_REQUESTS_PER_MIN" value="180"/>
<server name="LOG_FAILED_LOGIN_MESSAGE" value=""/>
<server name="LOG_FAILED_LOGIN_CHANNEL" value="testing"/>
<server name="WKHTMLTOPDF" value="false"/>
</php>
</phpunit>