This commit is contained in:
2021-12-03 18:22:26 +08:00
parent 6e7da1b0ed
commit a3ce9f52ba
+17
View File
@@ -3,6 +3,7 @@
defined('APP_PATH') or define('APP_PATH', realpath(__DIR__ . '/../../'));
use Http\Handler\Abstracts\MiddlewareManager;
use Http\Handler\Router;
use JetBrains\PhpStorm\Pure;
use Kiri\Abstracts\Config;
@@ -52,6 +53,22 @@ if (!function_exists('make')) {
}
if (!function_exists('map')) {
/**
* @param array $params
* @param Closure $closure
* @return mixed
*/
function map(array $params, Closure $closure): mixed
{
return array_map($closure, $params);
}
}
if (!function_exists('checkPortIsAlready')) {