module->getService(ThemeRepository::class); /** @var array $themeInfo */ $themeInfo = $themeRepository->getThemes(); try { $response = $this->proxyService->upload($jobId, $themeInfo, $this->startTime); } catch (EnvVarException|Exception $exception) { $this->exitWithExceptionMessage($exception); } $this->exitWithResponse( array_merge( [ 'remaining_objects' => 0, 'total_objects' => count($themeInfo), ], $response ) ); } }