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;