改名
This commit is contained in:
+2
-6
@@ -51,8 +51,7 @@ class Gii
|
|||||||
*
|
*
|
||||||
* @param InputInterface $input
|
* @param InputInterface $input
|
||||||
* @return array
|
* @return array
|
||||||
* @throws ComponentException
|
* @throws Exception
|
||||||
* @throws ConfigException
|
|
||||||
*/
|
*/
|
||||||
public function run(?Connection $db, InputInterface $input): array
|
public function run(?Connection $db, InputInterface $input): array
|
||||||
{
|
{
|
||||||
@@ -64,13 +63,12 @@ class Gii
|
|||||||
* @param InputInterface $input
|
* @param InputInterface $input
|
||||||
* @param $db
|
* @param $db
|
||||||
* @return array
|
* @return array
|
||||||
* @throws ComponentException
|
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public function gen(InputInterface $input, $db): array
|
public function gen(InputInterface $input, $db): array
|
||||||
{
|
{
|
||||||
$this->input = $input;
|
$this->input = $input;
|
||||||
if (!empty($db)) $this->db = $db;
|
$this->db = $db;
|
||||||
|
|
||||||
$make = $this->input->getArgument('make');
|
$make = $this->input->getArgument('make');
|
||||||
if (empty($make)) {
|
if (empty($make)) {
|
||||||
@@ -110,8 +108,6 @@ class Gii
|
|||||||
if ($this->db instanceof Connection) {
|
if ($this->db instanceof Connection) {
|
||||||
return $this->makeByDatabases($make, $input);
|
return $this->makeByDatabases($make, $input);
|
||||||
}
|
}
|
||||||
$db = $this->input->getArgument('databases');
|
|
||||||
$this->db = Kiri::app()->get('db')->get($db);
|
|
||||||
|
|
||||||
return $this->makeByDatabases($make, $input);
|
return $this->makeByDatabases($make, $input);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,8 +45,6 @@ class GiiCommand extends Command
|
|||||||
* @return array
|
* @return array
|
||||||
* @throws ComponentException
|
* @throws ComponentException
|
||||||
* @throws ConfigException
|
* @throws ConfigException
|
||||||
* @throws NotFindClassException
|
|
||||||
* @throws ReflectionException
|
|
||||||
*/
|
*/
|
||||||
public function execute(InputInterface $input, OutputInterface $output): array
|
public function execute(InputInterface $input, OutputInterface $output): array
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user