Compare commits

..

2 Commits

Author SHA1 Message Date
jay e5345f11e2 0.0.1 2026-06-05 16:40:59 -04:00
jay 397031ec31 refractor to potter/middleware 2026-06-01 20:28:40 -04:00
3 changed files with 25 additions and 6 deletions
+2 -2
View File
@@ -1,3 +1,3 @@
# Template
# Middleware
Potter Framework Component Template
Potter Framework Middleware Interface
+6 -4
View File
@@ -1,14 +1,16 @@
{
"name": "potter/template",
"description": "Potter Framework Component Template",
"name": "potter/middleware",
"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": {
"psr-4": {
"Potter\\": "src/Potter/"
"Potter\\Middleware\\": "src/Potter/Middleware/"
}
},
"authors": [
@@ -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;
}