From 93fa562e2d9b0faca0d36f7603a75ded9e348a2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Sun, 23 Apr 2023 18:34:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- function.php | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/function.php b/function.php index 04dd167f..2fa8a0fd 100644 --- a/function.php +++ b/function.php @@ -52,21 +52,6 @@ if (!function_exists('service')) { } } -if (!function_exists('replica')) { - - - /** - * @param $name - * @return mixed - * @throws - */ - function replica($name): mixed - { - return Kiri::getDi()->copy($name); - } - -} - if (!function_exists('isJson')) { @@ -88,10 +73,11 @@ if (!function_exists('instance')) { * @param array $constrict * @param array $config * @return mixed + * @throws */ function instance($class, array $constrict = [], array $config = []): mixed { - return Kiri::getDi()->create($class, $constrict, $config); + return Kiri::getDi()->make($class, $constrict, $config); }