Filippo Bertilotti
2024-09-10 d409fa3653032013d861de0870eead9e282d3136
commit | author | age
9f6455 1 <?php
DC 2
3 namespace App\Providers;
4
5 use App\Models\SendMail;
6 use App\Vola\Repositories\SendMail\SendMailRepository;
7 use App\Models\Click2CartCatalog;
8 use App\Vola\Repositories\Click2CartCatalog\Click2CartCatalogRepository;
9
10 use Illuminate\Support\ServiceProvider;
11
12 class RepositoryServiceProvider extends ServiceProvider
13 {
14     public function register()
15     {
16         // Registrazione SendMailInterface
17         $this->app->bind('Vola\Repositories\SendMail\SendMailRepositoryInterface', function ($app) {
18             return new SendMailRepository(new SendMail);
19         });
20
21         // Registrazione Click2CartCatalogInterface
22         $this->app->bind('Vola\Repositories\Click2CartCatalog\Click2CartCatalogRepositoryInterface', function ($app) {
23             return new Click2CartCatalogRepository(new Click2CartCatalog);
24         });
25
26     }
27 }