<?php namespace BookStack\Providers;
+use BookStack\Services\SettingService;
+use BookStack\Setting;
use Illuminate\Support\ServiceProvider;
use Validator;
*/
public function register()
{
- //
+ $this->app->singleton(SettingService::class, function($app) {
+ return new SettingService($app->make(Setting::class), $app->make('Illuminate\Contracts\Cache\Repository'));
+ });
}
}