This commit is contained in:
2026-03-13 01:00:28 +01:00
parent 7b29fd9e02
commit 9a0dbe050b
13 changed files with 650 additions and 199 deletions

View File

@@ -16,6 +16,7 @@ use App\Modules\Settings\AllegroIntegrationRepository;
use App\Modules\Settings\AllegroOAuthClient;
use App\Modules\Settings\AllegroOrderImportService;
use App\Modules\Settings\AllegroStatusDiscoveryService;
use App\Modules\Settings\AllegroTokenManager;
use App\Modules\Settings\AllegroStatusMappingRepository;
use App\Modules\Settings\ApaczkaApiClient;
use App\Modules\Settings\ApaczkaIntegrationController;
@@ -57,6 +58,7 @@ return static function (Application $app): void {
$allegroStatusMappingRepository = new AllegroStatusMappingRepository($app->db());
$carrierDeliveryMappings = new CarrierDeliveryMethodMappingRepository($app->db());
$allegroOAuthClient = new AllegroOAuthClient();
$allegroTokenManager = new AllegroTokenManager($allegroIntegrationRepository, $allegroOAuthClient);
$apaczkaApiClient = new ApaczkaApiClient();
$cronRepository = new CronRepository($app->db());
$apaczkaIntegrationRepository = new ApaczkaIntegrationRepository(
@@ -74,15 +76,14 @@ return static function (Application $app): void {
$allegroOAuthClient,
new AllegroOrderImportService(
$allegroIntegrationRepository,
$allegroOAuthClient,
$allegroTokenManager,
new AllegroApiClient(),
new OrderImportRepository($app->db()),
$allegroStatusMappingRepository,
new OrdersRepository($app->db())
),
new AllegroStatusDiscoveryService(
$allegroIntegrationRepository,
$allegroOAuthClient,
$allegroTokenManager,
new AllegroApiClient(),
$allegroStatusMappingRepository
),
@@ -156,8 +157,7 @@ return static function (Application $app): void {
$allegroApiClient = new AllegroApiClient();
$shipmentPackageRepository = new ShipmentPackageRepository($app->db());
$shipmentService = new AllegroShipmentService(
$allegroIntegrationRepository,
$allegroOAuthClient,
$allegroTokenManager,
$allegroApiClient,
$shipmentPackageRepository,
$companySettingsRepository,