This commit is contained in:
2026-06-05 16:40:59 -04:00
parent 397031ec31
commit e5345f11e2
2 changed files with 20 additions and 1 deletions
+3 -1
View File
@@ -3,7 +3,9 @@
"description": "Potter Framework Middleware Interface", "description": "Potter Framework Middleware Interface",
"type": "library", "type": "library",
"require": { "require": {
"php": "^8.5" "php": "^8.5",
"psr/http-server-middleware": "^1.0",
"psr/http-message": "^2.0"
}, },
"license": "MIT", "license": "MIT",
"autoload": { "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;
}