first commit

This commit is contained in:
2023-04-15 23:29:27 +08:00
commit 2d9ac93a7a
71 changed files with 4592 additions and 0 deletions
@@ -0,0 +1,23 @@
<?php
namespace Kiri\Message\Abstracts;
use Kiri\Message\Constrict\Response;
use Throwable;
use Kiri\Message\Constrict\ResponseInterface;
/**
*
*/
interface ExceptionHandlerInterface
{
/**
* @param Throwable $exception
* @param Response $response
* @return ResponseInterface
*/
public function emit(Throwable $exception, Response $response): ResponseInterface;
}
+16
View File
@@ -0,0 +1,16 @@
<?php
namespace Kiri\Router;
interface InjectRouteInterface
{
/**
* @param object $class
* @param string $method
* @return void
*/
public function dispatch(object $class, string $method): void;
}
+8
View File
@@ -0,0 +1,8 @@
<?php
namespace Kiri\Router\Interface;
interface OnRequestInterface
{
}
+11
View File
@@ -0,0 +1,11 @@
<?php
namespace Kiri\Router\Validator\Inject;
interface ValidatorInterface
{
public function dispatch(object $class, string $name): bool;
}