2022-01-09 03:49:02 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
2022-01-10 11:39:55 +08:00
|
|
|
namespace Kiri\Server\Abstracts;
|
2022-01-09 03:49:02 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
use Kiri\Annotation\Inject;
|
|
|
|
|
use Exception;
|
|
|
|
|
use Kiri\Abstracts\Config;
|
|
|
|
|
use Kiri\Exception\ConfigException;
|
2022-01-12 14:10:32 +08:00
|
|
|
use Kiri;
|
2022-01-09 03:49:02 +08:00
|
|
|
use Psr\Log\LoggerInterface;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Class Server
|
|
|
|
|
* @package Server\Abstracts
|
|
|
|
|
*/
|
|
|
|
|
abstract class Server
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2022-06-16 17:38:22 +08:00
|
|
|
* @var LoggerInterface
|
2022-01-09 03:49:02 +08:00
|
|
|
*/
|
|
|
|
|
#[Inject(LoggerInterface::class)]
|
|
|
|
|
public LoggerInterface $logger;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Server constructor.
|
|
|
|
|
* @throws Exception
|
|
|
|
|
*/
|
|
|
|
|
public function __construct()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|