1 | <?php |
||
11 | class Middleware implements MiddlewareInterface |
||
12 | { |
||
13 | private $uri; |
||
14 | private $factory; |
||
15 | |||
16 | /** |
||
17 | * Set the Uri of the admin. |
||
18 | * |
||
19 | * @param UriInterface $uri |
||
20 | * @param ...$arguments |
||
21 | */ |
||
22 | public function __construct(UriInterface $uri, callable $factory) |
||
27 | |||
28 | /** |
||
29 | * Process a server request and return a response. |
||
30 | * |
||
31 | * @param ServerRequestInterface $request |
||
32 | * @param DelegateInterface $delegate |
||
33 | * |
||
34 | * @return ResponseInterface |
||
35 | */ |
||
36 | public function process(ServerRequestInterface $request, DelegateInterface $delegate) |
||
46 | } |
||
47 |