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);
|
|
|
|
|
$console->add($server);
|
|
|
|
|
}
|
2022-01-09 03:49:02 +08:00
|
|
|
}
|