改名
This commit is contained in:
+13
-1
@@ -51,7 +51,7 @@ class Gii
|
||||
* @throws ConfigException
|
||||
* @throws Exception
|
||||
*/
|
||||
public function run($db, $input)
|
||||
public function run(?Connection $db, $input)
|
||||
{
|
||||
$this->input = $input;
|
||||
if (!empty($db)) $this->db = $db;
|
||||
@@ -65,6 +65,18 @@ class Gii
|
||||
$task = new GiiTask();
|
||||
$task->setInput($this->input);
|
||||
return $task->generate();
|
||||
case 'interceptor':
|
||||
$task = new GiiInterceptor();
|
||||
$task->setInput($this->input);
|
||||
return $task->generate();
|
||||
case 'limits':
|
||||
$task = new GiiLimits();
|
||||
$task->setInput($this->input);
|
||||
return $task->generate();
|
||||
case 'middleware':
|
||||
$task = new GiiMiddleware();
|
||||
$task->setInput($this->input);
|
||||
return $task->generate();
|
||||
default:
|
||||
return $this->getModel($make, $input);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user