Files
kiri-core/HttpServer/Service/Http.php
T
as2252258@163.com 682246df28 modify
2021-08-11 01:04:57 +08:00

36 lines
552 B
PHP

<?php
declare(strict_types=1);
namespace HttpServer\Service;
use ReflectionException;
use Kiri\Exception\NotFindClassException;
use HttpServer\Service\Abstracts\Http as AHttp;
class Http extends AHttp
{
/**
* @throws ReflectionException
* @throws NotFindClassException
*/
public function onInit()
{
$this->onHandlerListener();
$this->onBaseListener();
}
/**
* @throws NotFindClassException
* @throws ReflectionException
*/
public function onBaseListener()
{
$this->on('request', $this->createHandler('request'));
}
}