1
This commit is contained in:
@@ -32,9 +32,9 @@ class GiiCommand extends Command
|
|||||||
protected function configure()
|
protected function configure()
|
||||||
{
|
{
|
||||||
$this->setName('sw:gii')
|
$this->setName('sw:gii')
|
||||||
->addArgument('action', InputArgument::REQUIRED)
|
->addOption('make', InputArgument::OPTIONAL)
|
||||||
->addArgument('name', InputArgument::OPTIONAL)
|
->addOption('name', InputArgument::OPTIONAL)
|
||||||
->addArgument('databases', InputArgument::OPTIONAL)
|
->addOption('databases', InputArgument::OPTIONAL)
|
||||||
->setDescription('./snowflake sw:gii make=model|controller|task|interceptor|limits|middleware name=xxxx');
|
->setDescription('./snowflake sw:gii make=model|controller|task|interceptor|limits|middleware name=xxxx');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -57,7 +57,7 @@ class GiiCommand extends Command
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$action = $input->getArgument('action');
|
$action = $input->getArgument('make');
|
||||||
if (!in_array($action, ['model', 'controller'])) {
|
if (!in_array($action, ['model', 'controller'])) {
|
||||||
$gii->run(null, $input);
|
$gii->run(null, $input);
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user