update
This commit is contained in:
@@ -23,6 +23,7 @@ use App\Modules\Settings\AllegroOAuthClient;
|
||||
use App\Modules\Settings\AllegroOrderImportService;
|
||||
use App\Modules\Settings\AllegroOrdersSyncService;
|
||||
use App\Modules\Settings\AllegroOrderSyncStateRepository;
|
||||
use App\Modules\Settings\AllegroPullStatusMappingRepository;
|
||||
use App\Modules\Settings\AllegroStatusMappingRepository;
|
||||
use App\Modules\Settings\AllegroStatusSyncService;
|
||||
use App\Modules\Settings\AllegroTokenManager;
|
||||
@@ -70,13 +71,18 @@ final class CronHandlerFactory
|
||||
$ordersRepository = new OrdersRepository($this->db);
|
||||
$allegroSyncStateRepository = new AllegroOrderSyncStateRepository($this->db);
|
||||
|
||||
$allegroPullStatusMappingRepo = new AllegroPullStatusMappingRepository($this->db);
|
||||
$automationService = $this->buildAutomationService($ordersRepository);
|
||||
|
||||
$orderImportService = new AllegroOrderImportService(
|
||||
$integrationRepository,
|
||||
$tokenManager,
|
||||
$apiClient,
|
||||
new OrderImportRepository($this->db),
|
||||
$statusMappingRepository,
|
||||
$ordersRepository
|
||||
$ordersRepository,
|
||||
$allegroPullStatusMappingRepo,
|
||||
$automationService
|
||||
);
|
||||
|
||||
$ordersSyncService = new AllegroOrdersSyncService(
|
||||
@@ -101,7 +107,8 @@ final class CronHandlerFactory
|
||||
$ordersRepository,
|
||||
new ShopproOrderMapper(),
|
||||
new ShopproProductImageResolver($shopproApiClient),
|
||||
$shopproPullStatusMappingRepo
|
||||
$shopproPullStatusMappingRepo,
|
||||
$automationService
|
||||
);
|
||||
$shopproStatusSyncService = new ShopproStatusSyncService(
|
||||
$shopproIntegrationsRepo,
|
||||
@@ -111,7 +118,6 @@ final class CronHandlerFactory
|
||||
$shopproStatusMappingRepo,
|
||||
$this->db
|
||||
);
|
||||
$automationService = $this->buildAutomationService($ordersRepository);
|
||||
|
||||
$shopproPaymentSyncService = new ShopproPaymentStatusSyncService(
|
||||
$shopproIntegrationsRepo,
|
||||
|
||||
Reference in New Issue
Block a user