]> BookStack Code Mirror - bookstack/blob - app/Providers/CustomFacadeProvider.php
Improved empty lists. Fixes #10.
[bookstack] / app / Providers / CustomFacadeProvider.php
1 <?php
2
3 namespace Oxbow\Providers;
4
5 use Illuminate\Support\ServiceProvider;
6 use Oxbow\Services\ActivityService;
7 use Oxbow\Services\SettingService;
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->bind('activity', function() {
29             return new ActivityService($this->app->make('Oxbow\Activity'));
30         });
31
32         $this->app->bind('setting', function() {
33             return new SettingService($this->app->make('Oxbow\Setting'));
34         });
35     }
36 }