X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/17f4aa4300976937a0e90df8328229436a3c3d4c..refs/pull/360/head:/app/Providers/CustomFacadeProvider.php diff --git a/app/Providers/CustomFacadeProvider.php b/app/Providers/CustomFacadeProvider.php index 6e6318824..b2c7acf5e 100644 --- a/app/Providers/CustomFacadeProvider.php +++ b/app/Providers/CustomFacadeProvider.php @@ -1,10 +1,19 @@ app->bind('activity', function() { - return new ActivityService($this->app->make('Oxbow\Activity')); + return new ActivityService( + $this->app->make(Activity::class), + $this->app->make(PermissionService::class) + ); + }); + + $this->app->bind('views', function() { + return new ViewService( + $this->app->make(View::class), + $this->app->make(PermissionService::class) + ); }); $this->app->bind('setting', function() { - return new SettingService($this->app->make('Oxbow\Setting')); + return new SettingService( + $this->app->make(Setting::class), + $this->app->make(Repository::class) + ); + }); + + $this->app->bind('images', function() { + return new ImageService( + $this->app->make(ImageManager::class), + $this->app->make(Factory::class), + $this->app->make(Repository::class) + ); }); } }