3 namespace BookStack\Providers;
5 use BookStack\Services\ImageService;
6 use BookStack\Services\ViewService;
7 use Illuminate\Support\ServiceProvider;
8 use BookStack\Services\ActivityService;
9 use BookStack\Services\SettingService;
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 new ActivityService($this->app->make('BookStack\Activity'));
34 $this->app->bind('views', function() {
35 return new ViewService($this->app->make('BookStack\View'));
38 $this->app->bind('setting', function() {
39 return new SettingService(
40 $this->app->make('BookStack\Setting'),
41 $this->app->make('Illuminate\Contracts\Cache\Repository')
44 $this->app->bind('images', function() {
45 return new ImageService(
46 $this->app->make('Intervention\Image\ImageManager'),
47 $this->app->make('Illuminate\Contracts\Filesystem\Factory'),
48 $this->app->make('Illuminate\Contracts\Cache\Repository')