dueEvents() публичный Метод

Get all of the events on the schedule that are due.
public dueEvents ( Application $app ) : Event[]
$app yii\base\Application
Результат Event[]
 public function actionRun()
 {
     $this->importScheduleFile();
     $events = $this->schedule->dueEvents(\Yii::$app);
     foreach ($events as $event) {
         $this->stdout('Running scheduled command: ' . $event->getSummaryForDisplay() . "\n");
         $event->run(\Yii::$app);
     }
     if (count($events) === 0) {
         $this->stdout("No scheduled commands are ready to run.\n");
     }
 }