From 6c20b1b17369caadc6d5ae3ba912e8471012e6ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 8 Apr 2021 15:05:44 +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 --- function.php | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/function.php b/function.php index 89897a22..b524832d 100644 --- a/function.php +++ b/function.php @@ -91,6 +91,7 @@ if (!function_exists('scan_directory')) { function scan_directory($dir, $namespace) { \annotation()->read($dir, $namespace); + \annotation()->instanceDirectoryFiles($dir); } } @@ -514,6 +515,7 @@ if (!function_exists('request')) { /** * @return Request + * @throws Exception */ function request(): Request { @@ -529,6 +531,7 @@ if (!function_exists('Input')) { /** * @return HttpParams + * @throws Exception */ function Input(): HttpParams { @@ -578,20 +581,6 @@ if (!function_exists('storage')) { } return $fileName; } - - - /** - * @param $basePath - * @param $path - * @return false|string - * @throws Exception - */ - function initDir($path): bool|string - { - return mkdir($path, 0777, true); - } - - }