update
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user