diff --git a/System/Application.php b/System/Application.php index 93d7682a..9c8de963 100644 --- a/System/Application.php +++ b/System/Application.php @@ -53,8 +53,6 @@ class Application extends BaseApplication { $this->import(ConsoleProviders::class); $this->import(ServerProviders::class); - - $this->import(CrontabProviders::class); } @@ -67,6 +65,15 @@ class Application extends BaseApplication } + /** + * @throws NotFindClassException + */ + public function withCrontab() + { + $this->import(CrontabProviders::class); + } + + /** * @param Closure|array $closure * @return $this