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