This commit is contained in:
2026-04-07 22:39:16 +02:00
parent 8fa9ca6439
commit 40644eb362
31 changed files with 4972 additions and 71 deletions

View File

@@ -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,