public function getTasks()
    {
        $tasks = [];

        foreach ($this->getKernelEvents() as $event) {
            $tasks[] = [
                'task'          => $this->formatTask($event),
                'expression'    => $event->expression,
                'nextRunDate'   => $event->nextRunDate()->format('Y-m-d H:i:s'),
                'description'   => $event->description,
                'readable'      => CronSchedule::fromCronString($event->expression)->asNaturalLanguage(),
            ];
        }

        return $tasks;
    }
public function getTasks()
    {
        $tasks = [];

        foreach ($this->getKernelEvents() as $event) {
            $tasks[] = [
                'task'          => $this->formatTask($event),
                'expression'    => $event->expression,
                'nextRunDate'   => $event->nextRunDate()->format('Y-m-d H:i:s'),
                'description'   => $event->description,
                'readable'      => CronSchedule::fromCronString($event->expression)->asNaturalLanguage(),
            ];
        }

        return $tasks;
    }
public function getTasks ( ) { $ tasks = [ ] ; foreach ( $ this -> getKernelEvents ( ) as $ event ) { $ tasks [ ] = [ 'task' => $ this -> formatTask ( $ event ) , 'expression' => $ event -> expression , 'nextRunDate' => $ event -> nextRunDate ( ) -> format ( 'Y-m-d H:i:s' ) , 'description' => $ event -> description , 'readable' => CronSchedule :: fromCronString ( $ event -> expression ) -> asNaturalLanguage ( ) , ] ; } return $ tasks ; }
Get all formatted tasks.

@throws \Exception

@return array
Get all formatted tasks .