mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-28 13:12:05 +00:00
37 lines
741 B
PHP
37 lines
741 B
PHP
<?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() {
|
|
return new SettingService($this->app->make('Oxbow\Setting'));
|
|
});
|
|
}
|
|
}
|