Files
kiri-http-server/ServerProviders.php
T

29 lines
507 B
PHP
Raw Normal View History

2022-01-09 03:49:02 +08:00
<?php
declare(strict_types=1);
2022-01-10 11:39:55 +08:00
namespace Kiri\Server;
2022-01-09 03:49:02 +08:00
use Kiri\Abstracts\Providers;
2022-06-22 16:29:41 +08:00
use Symfony\Component\Console\Application;
2022-01-09 03:49:02 +08:00
/**
* Class DatabasesProviders
* @package Database
*/
class ServerProviders extends Providers
{
2023-12-12 15:35:34 +08:00
/**
* @throws
*/
public function onImport(): void
{
$server = $this->container->get(ServerCommand::class);
2022-01-09 03:49:02 +08:00
2023-12-12 15:35:34 +08:00
$console = $this->container->get(Application::class);
2025-12-23 19:04:18 +08:00
$console->addCommand($server);
2023-12-12 15:35:34 +08:00
}
2022-01-09 03:49:02 +08:00
}