mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-30 23:52:40 +01:00
c61c3bc608
Allows customization of back-end components via event-driven handling from the theme folder.
52 lines
1.2 KiB
PHP
52 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace BookStack\Providers;
|
|
|
|
use BookStack\Actions\ActivityService;
|
|
use BookStack\Actions\ViewService;
|
|
use BookStack\Auth\Permissions\PermissionService;
|
|
use BookStack\Theming\ThemeService;
|
|
use BookStack\Uploads\ImageService;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class CustomFacadeProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Bootstrap the application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Register the application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
$this->app->singleton('activity', function () {
|
|
return $this->app->make(ActivityService::class);
|
|
});
|
|
|
|
$this->app->singleton('views', function () {
|
|
return $this->app->make(ViewService::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);
|
|
});
|
|
}
|
|
}
|