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