first commit
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace Kiri\Router\Interface;
|
||||
|
||||
interface OnRequestInterface
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace Kiri\Router\Validator\Inject;
|
||||
|
||||
interface ValidatorInterface
|
||||
{
|
||||
|
||||
|
||||
public function dispatch(object $class, string $name): bool;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user