0.0.1
This commit is contained in:
+3
-1
@@ -3,7 +3,9 @@
|
||||
"description": "Potter Framework Middleware Interface",
|
||||
"type": "library",
|
||||
"require": {
|
||||
"php": "^8.5"
|
||||
"php": "^8.5",
|
||||
"psr/http-server-middleware": "^1.0",
|
||||
"psr/http-message": "^2.0"
|
||||
},
|
||||
"license": "MIT",
|
||||
"autoload": {
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Potter\Middleware;
|
||||
|
||||
use \Psr\Http\Server\MiddlewareInterface as PsrMiddlewareInterface;
|
||||
|
||||
use \Psr\Http\Server\RequestHandlerInterface as PsrRequestHandlerInterface;
|
||||
|
||||
use \Psr\Http\Message\ResponseInterface as PsrResponseInterface;
|
||||
use \Psr\Http\Message\ServerRequestInterface as PsrServerRequestInterface;
|
||||
|
||||
interface MiddlewareInterface extends PsrMiddlewareInterface
|
||||
{
|
||||
public function process(PsrServerRequestInterface $request, PsrRequestHandlerInterface $handler): PsrResponseInterface;
|
||||
}
|
||||
Reference in New Issue
Block a user