| 1 | <?php |
||
| 17 | final class RequestMatcherPlugin implements Plugin |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var RequestMatcher |
||
| 21 | */ |
||
| 22 | private $requestMatcher; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var null|Plugin |
||
| 26 | */ |
||
| 27 | private $successPlugin; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var null|Plugin |
||
| 31 | */ |
||
| 32 | private $failurePlugin; |
||
| 33 | |||
| 34 | 4 | public function __construct(RequestMatcher $requestMatcher, ?Plugin $delegateOnMatch, Plugin $delegateOnNoMatch = null) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritdoc} |
||
| 43 | */ |
||
| 44 | 2 | public function handleRequest(RequestInterface $request, callable $next, callable $first): Promise |
|
| 56 | } |
||
| 57 |