3 namespace BookStack\Providers;
5 use BookStack\Actions\ActivityLogger;
6 use BookStack\Auth\Permissions\PermissionApplicator;
7 use BookStack\Theming\ThemeService;
8 use BookStack\Uploads\ImageService;
9 use Illuminate\Support\ServiceProvider;
11 class CustomFacadeProvider extends ServiceProvider
14 * Bootstrap the application services.
18 public function boot()
24 * Register the application services.
28 public function register()
30 $this->app->singleton('activity', function () {
31 return $this->app->make(ActivityLogger::class);
34 $this->app->singleton('theme', function () {
35 return $this->app->make(ThemeService::class);