<?php
-namespace Oxbow\Providers;
+namespace BookStack\Providers;
+use BookStack\Actions\ActivityLogger;
+use BookStack\Auth\Permissions\PermissionService;
+use BookStack\Theming\ThemeService;
+use BookStack\Uploads\ImageService;
use Illuminate\Support\ServiceProvider;
-use Oxbow\Services\ActivityService;
class CustomFacadeProvider extends ServiceProvider
{
*/
public function register()
{
- $this->app->bind('activity', function() {
- return new ActivityService($this->app->make('Oxbow\Activity'));
+ $this->app->singleton('activity', function () {
+ return $this->app->make(ActivityLogger::class);
+ });
+
+ $this->app->singleton('images', function () {
+ return $this->app->make(ImageService::class);
+ });
+
+ $this->app->singleton('permissions', function () {
+ return $this->app->make(PermissionService::class);
+ });
+
+ $this->app->singleton('theme', function () {
+ return $this->app->make(ThemeService::class);
});
}
}