/** * Get the list of jobs that are declared among all the connectors * * @return array with job alias => job */ protected function getAllJobs() { $jobs = []; $jobTypes = $this->connectorRegistry->getConnectors(); foreach ($jobTypes as $jobType) { $connectorTypes = $this->connectorRegistry->getJobs($jobType); foreach ($connectorTypes as $jobsConnectorType) { $jobs = array_merge($jobs, $jobsConnectorType); } } return $jobs; }