1 | <?php |
||
14 | final class RecordPlugin implements Plugin |
||
15 | { |
||
16 | const HEADER_NAME = 'X-VCR-RECORD'; |
||
17 | |||
18 | /** |
||
19 | * @var NamingStrategyInterface |
||
20 | */ |
||
21 | private $namingStrategy; |
||
22 | |||
23 | /** |
||
24 | * @var RecorderInterface |
||
25 | */ |
||
26 | private $recorder; |
||
27 | |||
28 | 1 | public function __construct(NamingStrategyInterface $namingStrategy, RecorderInterface $recorder) |
|
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | 1 | public function handleRequest(RequestInterface $request, callable $next, callable $first): Promise |
|
50 | } |
||
51 |