mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-03 22:33:38 +08:00
39 lines
815 B
PHP
39 lines
815 B
PHP
<?php
|
|
|
|
namespace BookStack\Providers;
|
|
|
|
use BookStack\Actions\ActivityLogger;
|
|
use BookStack\Auth\Permissions\PermissionApplicator;
|
|
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(ActivityLogger::class);
|
|
});
|
|
|
|
$this->app->singleton('theme', function () {
|
|
return $this->app->make(ThemeService::class);
|
|
});
|
|
}
|
|
}
|