get(OrganizationRepository::class); $siteController = GeneralUtility::makeInstance(ObjectManager::class)->get(SiteController::class); $report = new ScanReport(); $organizationsCollection = $organizationRepository->getAll(); foreach ($organizationsCollection->getMembers() as $organization) { $status = $siteController->getSiteStatusAction($organization->getId(), $fullScan); $report->setResultFor($organization->getId(), $status); } return $report; } }