38 lines
710 B
PHP
38 lines
710 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
use App\Services\ActivityService;
|
|
use App\Contracts\ActivityContract;
|
|
class ActivityServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Bootstrap the application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Register the application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
$this->app->singleton('activityservice', function(){
|
|
return new ActivityService();
|
|
});
|
|
|
|
$this->app->bind('App\Contracts\ActivityContract',function(){
|
|
|
|
return new ActivityService();
|
|
|
|
});
|
|
}
|
|
}
|