This commit is contained in:
2021-10-25 18:20:29 +08:00
parent 7cf1d24b43
commit 6605aae410
65 changed files with 26 additions and 5669 deletions
@@ -1,23 +0,0 @@
<?php
namespace Server\Abstracts;
use JetBrains\PhpStorm\Pure;
/**
*
*/
class PageNotFoundException extends \Exception
{
/**
*
*/
#[Pure] public function __construct(int $code)
{
parent::__construct('<h2>HTTP 404 Not Found</h2><hr><i>Powered by Swoole</i>', $code);
}
}
-1
View File
@@ -7,7 +7,6 @@ namespace Server\Abstracts;
use Annotation\Inject;
use Exception;
use Kiri\Abstracts\Config;
use Kiri\Abstracts\Logger;
use Kiri\Exception\ConfigException;
use Kiri\Kiri;
use Psr\Log\LoggerInterface;
@@ -1,16 +0,0 @@
<?php
namespace Server\Abstracts\Utility;
use Annotation\Inject;
use Kiri\Events\EventDispatch;
trait EventDispatchHelper
{
/** @var EventDispatch */
#[Inject(EventDispatch::class)]
public EventDispatch $eventDispatch;
}
@@ -1,25 +0,0 @@
<?php
namespace Server\Abstracts\Utility;
use Annotation\Inject;
use Server\Constrict\Emitter;
use Server\Constrict\Response as CResponse;
use Server\Constrict\ResponseEmitter;
/**
*
*/
trait ResponseHelper
{
/** @var CResponse|mixed */
#[Inject(CResponse::class)]
public CResponse $response;
public Emitter $responseEmitter;
}