module->getService(ServerInformationRepository::class); $serverInfo = $serverInformationRepository->getServerInformation(Tools::getValue('lang_iso', null)); try { $response = $this->proxyService->upload($jobId, $serverInfo, $this->startTime); } catch (EnvVarException $exception) { $this->exitWithExceptionMessage($exception); } catch (Exception $exception) { $this->exitWithExceptionMessage($exception); } $this->exitWithResponse( array_merge( [ 'remaining_objects' => 0, 'total_objects' => 1, ], $response ) ); } }