first commit
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Service\CarmisService;
|
||||
use App\Service\CouponService;
|
||||
use App\Service\EmailtplService;
|
||||
use App\Service\GoodsService;
|
||||
use App\Service\OrderProcessService;
|
||||
use App\Service\OrderService;
|
||||
use App\Service\PayService;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Jenssegers\Agent\Agent;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* Register any application services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
$this->app->singleton('Service\GoodsService', function () {
|
||||
return $this->app->make(GoodsService::class);
|
||||
});
|
||||
$this->app->singleton('Service\PayService', function () {
|
||||
return $this->app->make(PayService::class);
|
||||
});
|
||||
$this->app->singleton('Service\CarmisService', function () {
|
||||
return $this->app->make(CarmisService::class);
|
||||
});
|
||||
$this->app->singleton('Service\OrderService', function () {
|
||||
return $this->app->make(OrderService::class);
|
||||
});
|
||||
$this->app->singleton('Service\CouponService', function () {
|
||||
return $this->app->make(CouponService::class);
|
||||
});
|
||||
$this->app->singleton('Service\OrderProcessService', function () {
|
||||
return $this->app->make(OrderProcessService::class);
|
||||
});
|
||||
$this->app->singleton('Service\EmailtplService', function () {
|
||||
return $this->app->make(EmailtplService::class);
|
||||
});
|
||||
$this->app->singleton('Jenssegers\Agent', function () {
|
||||
return $this->app->make(Agent::class);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Bootstrap any application services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user