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