protected function loadSchedule($schedule)
    {
        if (($schedules = $this->app['config']['console.schedules']) == null) {
            return;
        }

        foreach ($schedules as $definition) {
            $type = $definition['type'] ?? 'command';

            if (! method_exists($this, $method = 'define'.ucfirst($type).'Schedule')) {
                throw new InvalidArgumentException("Schedule [{$type}] is not support.");
            }

            $this->$method($schedule, $definition);
        }
    }