mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-24 00:07:49 +08:00
9079700170
- Renamed to "ActivityLogger" to be more focused in usage. - Extracted out query elements to seperate "ActivityQueries" class. - Removed old 'addForEntity' activity method to limit activity record points.
47 lines
1.0 KiB
PHP
47 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace BookStack\Providers;
|
|
|
|
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
|
|
{
|
|
/**
|
|
* 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('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);
|
|
});
|
|
}
|
|
}
|