This commit is contained in:
2026-04-09 00:51:24 +02:00
parent 633da52880
commit 854adc32c1
11 changed files with 366 additions and 45 deletions

View File

@@ -124,29 +124,6 @@ return static function (Application $app): void {
$apaczkaIntegrationRepository,
$apaczkaApiClient
);
$allegroIntegrationController = new AllegroIntegrationController(
$template,
$translator,
$auth,
$allegroIntegrationRepository,
$allegroStatusMappingRepository,
$allegroPullStatusMappingRepository,
$app->orderStatuses(),
$cronRepository,
$allegroOAuthClient,
new AllegroOrderImportService(
$allegroIntegrationRepository,
$allegroTokenManager,
new AllegroApiClient(),
new OrderImportRepository($app->db()),
$allegroStatusMappingRepository,
new OrdersRepository($app->db()),
new AllegroPullStatusMappingRepository($app->db())
),
$allegroStatusDiscoveryService,
(string) $app->config('app.url', ''),
$allegroDeliveryMappingController
);
$apaczkaIntegrationController = new ApaczkaIntegrationController(
$template,
$translator,
@@ -277,6 +254,30 @@ return static function (Application $app): void {
$shipmentPackageRepositoryForOrders,
$receiptService
);
$allegroIntegrationController = new AllegroIntegrationController(
$template,
$translator,
$auth,
$allegroIntegrationRepository,
$allegroStatusMappingRepository,
$allegroPullStatusMappingRepository,
$app->orderStatuses(),
$cronRepository,
$allegroOAuthClient,
new AllegroOrderImportService(
$allegroIntegrationRepository,
$allegroTokenManager,
new AllegroApiClient(),
new OrderImportRepository($app->db()),
$allegroStatusMappingRepository,
new OrdersRepository($app->db()),
new AllegroPullStatusMappingRepository($app->db()),
$automationService
),
$allegroStatusDiscoveryService,
(string) $app->config('app.url', ''),
$allegroDeliveryMappingController
);
$printJobRepository = new PrintJobRepository($app->db());
$ordersController = new OrdersController($template, $translator, $auth, $app->orders(), $shipmentPackageRepositoryForOrders, $receiptRepository, $receiptConfigRepository, $emailSendingService, $emailTemplateRepository, $emailMailboxRepository, $app->basePath('storage'), $printJobRepository, $shopproIntegrationsRepository, $automationService);
$receiptController = new ReceiptController(