mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-26 04:05:57 +00:00
![Dan Brown](/assets/img/avatar_default.png)
- Also removed some old view service references. - Updated TopFavourites query to be based on favourites table and join in the views instead of the other way around, so that favourites still show even if they have no views.
47 lines
1.0 KiB
PHP
47 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace BookStack\Providers;
|
|
|
|
use BookStack\Actions\ActivityService;
|
|
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('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);
|
|
});
|
|
}
|
|
}
|