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