3 namespace BookStack\Providers;
5 use BookStack\Services\ViewService;
6 use Illuminate\Support\ServiceProvider;
7 use BookStack\Services\ActivityService;
8 use BookStack\Services\SettingService;
10 class CustomFacadeProvider extends ServiceProvider
13 * Bootstrap the application services.
17 public function boot()
23 * Register the application services.
27 public function register()
29 $this->app->bind('activity', function() {
30 return new ActivityService($this->app->make('BookStack\Activity'));
33 $this->app->bind('views', function() {
34 return new ViewService($this->app->make('BookStack\View'));
37 $this->app->bind('setting', function() {
38 return new SettingService(
39 $this->app->make('BookStack\Setting'),
40 $this->app->make('Illuminate\Contracts\Cache\Repository')