davide.cucurnia@vola.it
2024-02-07 59b0688842f1808c1a51f277d8605b3ec4a710de
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 }