eee
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ class GiiCommand extends Command
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
protected function configure()
|
protected function configure(): void
|
||||||
{
|
{
|
||||||
$this->setName('sw:gii')
|
$this->setName('sw:gii')
|
||||||
->addOption('make', 'm', InputArgument::OPTIONAL)
|
->addOption('make', 'm', InputArgument::OPTIONAL)
|
||||||
|
|||||||
+2
-3
@@ -8,7 +8,6 @@ namespace Gii;
|
|||||||
use Kiri\Abstracts\Providers;
|
use Kiri\Abstracts\Providers;
|
||||||
use Psr\Container\ContainerExceptionInterface;
|
use Psr\Container\ContainerExceptionInterface;
|
||||||
use Psr\Container\NotFoundExceptionInterface;
|
use Psr\Container\NotFoundExceptionInterface;
|
||||||
use Symfony\Component\Console\Application;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class DatabasesProviders
|
* Class DatabasesProviders
|
||||||
@@ -25,7 +24,7 @@ class GiiProviders extends Providers
|
|||||||
*/
|
*/
|
||||||
public function onImport(): void
|
public function onImport(): void
|
||||||
{
|
{
|
||||||
$console = $this->container->get(Application::class);
|
$console = $this->container->get(\Kiri\Application::class);
|
||||||
$console->add($this->container->get(GiiCommand::class));
|
$console->command(GiiCommand::class);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user