<?php
|
|
namespace App\Providers;
|
|
use App\Models\SendMail;
|
use App\Vola\Repositories\SendMail\SendMailRepository;
|
use App\Models\Click2CartCatalog;
|
use App\Vola\Repositories\Click2CartCatalog\Click2CartCatalogRepository;
|
|
use Illuminate\Support\ServiceProvider;
|
|
class RepositoryServiceProvider extends ServiceProvider
|
{
|
public function register()
|
{
|
// Registrazione SendMailInterface
|
$this->app->bind('Vola\Repositories\SendMail\SendMailRepositoryInterface', function ($app) {
|
return new SendMailRepository(new SendMail);
|
});
|
|
// Registrazione Click2CartCatalogInterface
|
$this->app->bind('Vola\Repositories\Click2CartCatalog\Click2CartCatalogRepositoryInterface', function ($app) {
|
return new Click2CartCatalogRepository(new Click2CartCatalog);
|
});
|
|
}
|
}
|