public function listCronsStatus()
    {
        /** @var SmileCron[] $smileCrons */
        $smileCrons = $this->repository->listCrons();

        /** @var CronInterface[] $crons */
        $crons = $this->getCrons();
        $cronAlias = array();

        foreach ($crons as $cron) {
            $cronAlias[$cron->getAlias()] = $cron;
        }

        if ($smileCrons) {
            foreach ($smileCrons as $smileCron) {
                if (isset($cronAlias[$smileCron->getAlias()])) {
                    $cronAlias[$smileCron->getAlias()] = $smileCron;
                }
            }
        }

        return $cronAlias;
    }
public function listCronsStatus()
    {
        /** @var SmileCron[] $smileCrons */
        $smileCrons = $this->repository->listCrons();

        /** @var CronInterface[] $crons */
        $crons = $this->getCrons();
        $cronAlias = array();

        foreach ($crons as $cron) {
            $cronAlias[$cron->getAlias()] = $cron;
        }

        if ($smileCrons) {
            foreach ($smileCrons as $smileCron) {
                if (isset($cronAlias[$smileCron->getAlias()])) {
                    $cronAlias[$smileCron->getAlias()] = $smileCron;
                }
            }
        }

        return $cronAlias;
    }
public function listCronsStatus ( ) { /** @var SmileCron[] $smileCrons */ $ smileCrons = $ this -> repository -> listCrons ( ) ; /** @var CronInterface[] $crons */ $ crons = $ this -> getCrons ( ) ; $ cronAlias = array ( ) ; foreach ( $ crons as $ cron ) { $ cronAlias [ $ cron -> getAlias ( ) ] = $ cron ; } if ( $ smileCrons ) { foreach ( $ smileCrons as $ smileCron ) { if ( isset ( $ cronAlias [ $ smileCron -> getAlias ( ) ] ) ) { $ cronAlias [ $ smileCron -> getAlias ( ) ] = $ smileCron ; } } } return $ cronAlias ; }
Return cron list and status

@return SmileCron[] cron list with status
Return cron list and status