PluginProbe
ووسلام – همگام سازی ووکامرس و باسلام / 1.10.19
ووسلام – همگام سازی ووکامرس و باسلام v1.10.19
1.10.19 1.10.20 1.10.18 1.10.17 1.10.15 1.10.14 1.10.13 1.10.12 1.10.10 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.2 1.9.1 1.9.0 1.8.8 1.8.5 1.8.6 All 53 releases
← All changes | includes/Infrastructure/Container/AppServiceProvider.php +10 -0 1.10.51.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);