From 6d8ac6f4c0d10539202d2d38e956eb8208887878 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 19 Jan 2021 18:36:21 +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 --- Gii/Gii.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Gii/Gii.php b/Gii/Gii.php index ce882d04..2efd4707 100644 --- a/Gii/Gii.php +++ b/Gii/Gii.php @@ -55,6 +55,21 @@ class Gii * @throws Exception */ public function run(?Connection $db, $input): array + { + return go(function () use ($db, $input) { + return $this->gen($db, $input); + }); + } + + + /** + * @param $input + * @param $db + * @return array|string[] + * @throws ComponentException + * @throws ConfigException + */ + public function gen($input, $db) { $this->input = $input; if (!empty($db)) $this->db = $db;