← All changes
|
includes/Infrastructure/Container/AppServiceProvider.php
+10
-0
1.10.1
→
1.10.19
View file →
| @@ -24,8 +24,10 @@ | ||
| 24 | 24 | use SyncBasalam\Services\Products\Discount\DiscountTaskProcessor; |
| 25 | 25 | use SyncBasalam\Services\Orders\FetchOrdersService; |
| 26 | 26 | use SyncBasalam\Services\Orders\SyncOrderService; |
| 27 | 27 | use SyncBasalam\Services\SystemResourceMonitor; |
| 28 | +use SyncBasalam\Services\VendorInfoService; | |
| 29 | +use SyncBasalam\Services\VendorSyncPolicy; | |
| 28 | 30 | |
| 29 | 31 | defined('ABSPATH') || exit; |
| 30 | 32 | |
| 31 | 33 | class AppServiceProvider implements ServiceProviderInterface |
| @@ -45,8 +47,16 @@ | ||
| 45 | 47 | }); |
| 46 | 48 | |
| 47 | 49 | $container->singleton(ApiServiceManager::class, function () { |
| 48 | 50 | return $this->newInstance(ApiServiceManager::class); |
| 51 | + }); | |
| 52 | + | |
| 53 | + $container->singleton(VendorInfoService::class, function () { | |
| 54 | + return new VendorInfoService(); | |
| 55 | + }); | |
| 56 | + | |
| 57 | + $container->singleton(VendorSyncPolicy::class, function (ContainerInterface $container) { | |
| 58 | + return new VendorSyncPolicy($container->get(VendorInfoService::class)); | |
| 49 | 59 | }); |
| 50 | 60 | |
| 51 | 61 | $container->singleton(ProductOperations::class, function () { |
| 52 | 62 | return $this->newInstance(ProductOperations::class); |