- $this->app->bind('setting', function() {
- return new SettingService(
- $this->app->make('BookStack\Setting'),
- $this->app->make('Illuminate\Contracts\Cache\Repository')
- );
+ $this->app->singleton('permissions', function () {
+ return $this->app->make(PermissionService::class);
+ });
+
+ $this->app->singleton('theme', function () {
+ return $this->app->make(ThemeService::class);