2015-08-16 19:59:23 +02:00
|
|
|
<?php
|
|
|
|
|
2015-09-10 20:31:09 +02:00
|
|
|
namespace BookStack\Providers;
|
2015-08-16 19:59:23 +02:00
|
|
|
|
2021-12-11 18:29:33 +01:00
|
|
|
use BookStack\Actions\ActivityLogger;
|
2021-03-16 18:14:03 +01:00
|
|
|
use BookStack\Theming\ThemeService;
|
2015-08-16 19:59:23 +02:00
|
|
|
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()
|
|
|
|
{
|
2019-09-20 01:18:28 +02:00
|
|
|
$this->app->singleton('activity', function () {
|
2021-12-11 18:29:33 +01:00
|
|
|
return $this->app->make(ActivityLogger::class);
|
2015-08-16 19:59:23 +02:00
|
|
|
});
|
2015-08-30 16:31:16 +02:00
|
|
|
|
2021-03-16 18:14:03 +01:00
|
|
|
$this->app->singleton('theme', function () {
|
|
|
|
return $this->app->make(ThemeService::class);
|
|
|
|
});
|
2015-08-16 19:59:23 +02:00
|
|
|
}
|
|
|
|
}
|