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