This commit is contained in:
2021-04-08 15:05:44 +08:00
parent 0affc404fd
commit 6c20b1b173
+3 -14
View File
@@ -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);
}
}