2022-03-17 10:35:14 +08:00
|
|
|
<?php
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace Gii;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use Kiri\Abstracts\Providers;
|
2022-06-22 16:29:42 +08:00
|
|
|
use Psr\Container\ContainerExceptionInterface;
|
|
|
|
|
use Psr\Container\NotFoundExceptionInterface;
|
2022-03-17 10:35:14 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Class DatabasesProviders
|
|
|
|
|
* @package Database
|
|
|
|
|
*/
|
|
|
|
|
class GiiProviders extends Providers
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
2023-11-30 17:02:21 +08:00
|
|
|
/**
|
|
|
|
|
* @return void
|
|
|
|
|
* @throws ContainerExceptionInterface
|
|
|
|
|
* @throws NotFoundExceptionInterface
|
|
|
|
|
*/
|
|
|
|
|
public function onImport(): void
|
|
|
|
|
{
|
2025-12-23 19:11:19 +08:00
|
|
|
$console = $this->container->get(\Kiri\Application::class);
|
|
|
|
|
$console->command(GiiCommand::class);
|
2023-11-30 17:02:21 +08:00
|
|
|
}
|
2022-03-17 10:35:14 +08:00
|
|
|
}
|