1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2024-11-25 12:22:30 +01:00
BookStack/app/Providers/CustomFacadeProvider.php

40 lines
846 B
PHP
Raw Normal View History

<?php
namespace Oxbow\Providers;
use Illuminate\Support\ServiceProvider;
use Oxbow\Services\ActivityService;
use Oxbow\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('Oxbow\Activity'));
});
$this->app->bind('setting', function() {
2015-09-06 16:26:31 +02:00
return new SettingService(
$this->app->make('Oxbow\Setting'),
$this->app->make('Illuminate\Contracts\Cache\Repository')
);
});
}
}