3 namespace BookStack\Providers;
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;
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->bind('activity', function () {
31 return $this->app->make(ActivityService::class);
34 $this->app->bind('views', function () {
35 return $this->app->make(ViewService::class);
38 $this->app->bind('setting', function () {
39 return $this->app->make(SettingService::class);
42 $this->app->bind('images', function () {
43 return $this->app->make(ImageService::class);