Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

BookStackApp/BookStack

17759 stars
1 code files
View BookStackApp/BookStack on GitHub

app/Providers/CustomFacadeProvider.php

Open in GitHub
use BookStack\Actions\ActivityLogger;
use BookStack\Auth\Permissions\PermissionService;
use BookStack\Theming\ThemeService;
use BookStack\Uploads\ImageService;
use Illuminate\Support\ServiceProvider;
 
class CustomFacadeProvider extends ServiceProvider
{
//
public function register()
{
$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);
});
}
}

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.