From fbd8ecadace0fd0456a2f441e82c0c77802eb71a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 11 Aug 2021 10:28:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Application.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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