1 | <?php |
||
9 | class HandlerProxy |
||
10 | { |
||
11 | /** |
||
12 | * @var RequestHandlerInterface |
||
13 | */ |
||
14 | private $adaptee; |
||
15 | |||
16 | /** |
||
17 | * @param RequestHandlerInterface $adaptee |
||
18 | */ |
||
19 | 2 | public function __construct(RequestHandlerInterface $adaptee) |
|
23 | |||
24 | /** |
||
25 | * Process the request using a handler. |
||
26 | * |
||
27 | * @param ServerRequestInterface $request |
||
28 | * |
||
29 | * @return ResponseInterface |
||
30 | */ |
||
31 | 2 | public function __invoke(ServerRequestInterface $request) |
|
35 | } |
||
36 |