]> BookStack Code Mirror - bookstack/blob - app/Providers/CustomFacadeProvider.php
Merge pull request #3556 from GongMingCai/development
[bookstack] / app / Providers / CustomFacadeProvider.php
1 <?php
2
3 namespace BookStack\Providers;
4
5 use BookStack\Actions\ActivityLogger;
6 use BookStack\Theming\ThemeService;
7 use Illuminate\Support\ServiceProvider;
8
9 class CustomFacadeProvider extends ServiceProvider
10 {
11     /**
12      * Bootstrap the application services.
13      *
14      * @return void
15      */
16     public function boot()
17     {
18         //
19     }
20
21     /**
22      * Register the application services.
23      *
24      * @return void
25      */
26     public function register()
27     {
28         $this->app->singleton('activity', function () {
29             return $this->app->make(ActivityLogger::class);
30         });
31
32         $this->app->singleton('theme', function () {
33             return $this->app->make(ThemeService::class);
34         });
35     }
36 }