BookStack/app/Providers/CustomFacadeProvider.php

45 lines
1.0 KiB
PHP
Raw Normal View History

<?php
namespace BookStack\Providers;
use BookStack\Services\ViewService;
use Illuminate\Support\ServiceProvider;
use BookStack\Services\ActivityService;
use BookStack\Services\SettingService;
class CustomFacadeProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
{
//
}
/**
* Register the application services.
*
* @return void
*/
public function register()
{
$this->app->bind('activity', function() {
return new ActivityService($this->app->make('BookStack\Activity'));
});
$this->app->bind('views', function() {
return new ViewService($this->app->make('BookStack\View'));
});
$this->app->bind('setting', function() {
2015-09-06 10:26:31 -04:00
return new SettingService(
$this->app->make('BookStack\Setting'),
2015-09-06 10:26:31 -04:00
$this->app->make('Illuminate\Contracts\Cache\Repository')
);
});
}
}