Files
kiri-core/HttpServer/Service/Http.php
T

36 lines
533 B
PHP
Raw Normal View History

2020-09-02 11:38:47 +08:00
<?php
namespace HttpServer\Service;
use ReflectionException;
use Snowflake\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'));
}
}