]> BookStack Code Mirror - bookstack/blob - app/Providers/CustomFacadeProvider.php
Added crude example of captcha usage
[bookstack] / app / Providers / CustomFacadeProvider.php
1 <?php
2
3 namespace BookStack\Providers;
4
5 use BookStack\Actions\ActivityService;
6 use BookStack\Actions\ViewService;
7 use BookStack\Settings\SettingService;
8 use BookStack\Uploads\ImageService;
9 use Illuminate\Support\ServiceProvider;
10
11 class CustomFacadeProvider extends ServiceProvider
12 {
13     /**
14      * Bootstrap the application services.
15      *
16      * @return void
17      */
18     public function boot()
19     {
20         //
21     }
22
23     /**
24      * Register the application services.
25      *
26      * @return void
27      */
28     public function register()
29     {
30         $this->app->bind('activity', function () {
31             return $this->app->make(ActivityService::class);
32         });
33
34         $this->app->bind('views', function () {
35             return $this->app->make(ViewService::class);
36         });
37
38         $this->app->bind('setting', function () {
39             return $this->app->make(SettingService::class);
40         });
41
42         $this->app->bind('images', function () {
43             return $this->app->make(ImageService::class);
44         });
45     }
46 }