public function getCrons(): array
    {
        /** @var CronInterface[] $crons */
        $crons = $this->cronService->getCrons();
        /** @var EdgarEzCron[] $ezCrons */
        $ezCrons = $this->repository->listCrons();

        $return = [];
        foreach ($ezCrons as $ezCron) {
            $return[$ezCron->getAlias()] = [
                'alias' => $ezCron->getAlias(),
                'expression' => $ezCron->getExpression(),
                'arguments' => $ezCron->getArguments(),
                'priority' => (int)$ezCron->getPriority(),
                'enabled' => (int)$ezCron->getEnabled() == 1,
            ];
        }

        foreach ($crons as $cron) {
            if (!isset($return[$cron->getAlias()])) {
                $return[$cron->getAlias()] = [
                    'alias' => $cron->getAlias(),
                    'expression' => $cron->getExpression(),
                    'arguments' => $cron->getArguments(),
                    'priority' => (int)$cron->getPriority(),
                    'enabled' => true,
                ];
            }
        }

        return $return;
    }
public function getCrons(): array
    {
        /** @var CronInterface[] $crons */
        $crons = $this->cronService->getCrons();
        /** @var EdgarEzCron[] $ezCrons */
        $ezCrons = $this->repository->listCrons();

        $return = [];
        foreach ($ezCrons as $ezCron) {
            $return[$ezCron->getAlias()] = [
                'alias' => $ezCron->getAlias(),
                'expression' => $ezCron->getExpression(),
                'arguments' => $ezCron->getArguments(),
                'priority' => (int)$ezCron->getPriority(),
                'enabled' => (int)$ezCron->getEnabled() == 1,
            ];
        }

        foreach ($crons as $cron) {
            if (!isset($return[$cron->getAlias()])) {
                $return[$cron->getAlias()] = [
                    'alias' => $cron->getAlias(),
                    'expression' => $cron->getExpression(),
                    'arguments' => $cron->getArguments(),
                    'priority' => (int)$cron->getPriority(),
                    'enabled' => true,
                ];
            }
        }

        return $return;
    }
public function getCrons ( ) : array { /** @var CronInterface[] $crons */ $ crons = $ this -> cronService -> getCrons ( ) ; /** @var EdgarEzCron[] $ezCrons */ $ ezCrons = $ this -> repository -> listCrons ( ) ; $ return = [ ] ; foreach ( $ ezCrons as $ ezCron ) { $ return [ $ ezCron -> getAlias ( ) ] = [ 'alias' => $ ezCron -> getAlias ( ) , 'expression' => $ ezCron -> getExpression ( ) , 'arguments' => $ ezCron -> getArguments ( ) , 'priority' => ( int ) $ ezCron -> getPriority ( ) , 'enabled' => ( int ) $ ezCron -> getEnabled ( ) == 1 , ] ; } foreach ( $ crons as $ cron ) { if ( ! isset ( $ return [ $ cron -> getAlias ( ) ] ) ) { $ return [ $ cron -> getAlias ( ) ] = [ 'alias' => $ cron -> getAlias ( ) , 'expression' => $ cron -> getExpression ( ) , 'arguments' => $ cron -> getArguments ( ) , 'priority' => ( int ) $ cron -> getPriority ( ) , 'enabled' => true , ] ; } } return $ return ; }
Return cron list detail.

@return array cron list
Return cron list detail .