src/Viserio/Component/Cron/Bootstrap/CronScheduling.php
public static function bootstrap(KernelContract $kernel): void
    {
        $schedule = $kernel->getContainer()->get(ScheduleContract::class);

        foreach ((array) require $kernel->getConfigPath('cron.php') as $class) {
            if ($class instanceof CronJobContract) {
                $class::register($schedule);
            } elseif ($class instanceof Closure) {
                $class($schedule);
            }
        }
    }
public static function bootstrap(KernelContract $kernel): void
    {
        $schedule = $kernel->getContainer()->get(ScheduleContract::class);

        foreach ((array) require $kernel->getConfigPath('cron.php') as $class) {
            if ($class instanceof CronJobContract) {
                $class::register($schedule);
            } elseif ($class instanceof Closure) {
                $class($schedule);
            }
        }
    }
{@inheritdoc}