1 | <?php |
||
14 | final class RequestConditionalPlugin implements Plugin |
||
15 | { |
||
16 | /** |
||
17 | * @var RequestMatcher |
||
18 | */ |
||
19 | private $requestMatcher; |
||
20 | |||
21 | /** |
||
22 | * @var Plugin |
||
23 | */ |
||
24 | private $delegatedPlugin; |
||
25 | |||
26 | /** |
||
27 | * @param RequestMatcher $requestMatcher |
||
28 | * @param Plugin $delegatedPlugin |
||
29 | */ |
||
30 | public function __construct(RequestMatcher $requestMatcher, Plugin $delegatedPlugin) |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | public function handleRequest(RequestInterface $request, callable $next, callable $first) |
||
47 | } |
||
48 |