diff options
Diffstat (limited to 'src/Contracts/Middleware.php')
| -rw-r--r-- | src/Contracts/Middleware.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Contracts/Middleware.php b/src/Contracts/Middleware.php new file mode 100644 index 0000000..96037c8 --- /dev/null +++ b/src/Contracts/Middleware.php @@ -0,0 +1,16 @@ +<?php + +declare(strict_types=1); + +namespace Lightscale\Router\Contracts; + +use Psr\Http\Message\ResponseInterface; +use Psr\Http\Message\ServerRequestInterface; + +interface Middleware +{ + public function handle( + ServerRequestInterface $request, + callable $next, + ): ResponseInterface; +} |
