Bolt\Events\CronEvent::doRunScheduledJobs PHP Method

doRunScheduledJobs() public method

Process jobs.
public doRunScheduledJobs ( Symfony\Component\EventDispatcher\Event $event, string $eventName )
$event Symfony\Component\EventDispatcher\Event
$eventName string
    public function doRunScheduledJobs(Event $event, $eventName)
    {
        switch ($eventName) {
            case CronEvents::CRON_HOURLY:
                $this->cronHourly();
                break;
            case CronEvents::CRON_DAILY:
                $this->cronDaily();
                break;
            case CronEvents::CRON_WEEKLY:
                $this->cronWeekly();
                break;
            case CronEvents::CRON_MONTHLY:
                $this->cronMonthly();
                break;
            case CronEvents::CRON_YEARLY:
                $this->cronYearly();
                break;
        }
    }