summaryrefslogtreecommitdiff
path: root/src/Contracts/Middleware.php
blob: 96037c85eb04e60b3a78a19e8e9ba04bca82e7a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
}