accountService, 'scheduleBackgroundJobs')) { return; } $accounts = $this->mapper->getAllAccounts(); $output->startProgress(count($accounts)); foreach ($accounts as $account) { $this->accountService->scheduleBackgroundJobs($account->getId()); $output->advance(); } $output->finishProgress(); } }