1 | <?php |
||
12 | class PathMiddleware implements MiddlewareInterface |
||
13 | { |
||
14 | protected $paths = []; |
||
15 | |||
16 | 3 | public function __construct(array $paths = []) |
|
23 | |||
24 | 3 | public function register(string $path, MiddlewareInterface $middleware): self |
|
29 | |||
30 | 2 | public function process(ServerRequestInterface $req, RequestHandlerInterface $handler): ResponseInterface |
|
41 | } |