2015-08-16 19:59:23 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Oxbow\Providers;
|
|
|
|
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
use Oxbow\Services\ActivityService;
|
2015-08-30 16:31:16 +02:00
|
|
|
use Oxbow\Services\SettingService;
|
2015-08-16 19:59:23 +02:00
|
|
|
|
|
|
|
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'));
|
|
|
|
});
|
2015-08-30 16:31:16 +02:00
|
|
|
|
|
|
|
$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')
|
|
|
|
);
|
2015-08-30 16:31:16 +02:00
|
|
|
});
|
2015-08-16 19:59:23 +02:00
|
|
|
}
|
|
|
|
}
|