1 | <?php |
||
18 | class SymfonyEventDispatcherDecorator implements HttpClientInterface |
||
|
|||
19 | { |
||
20 | const EVENT_REQUEST = 'mrtn_json_api.http_client.request'; |
||
21 | const EVENT_RESPONSE = 'mrtn_json_api.http_client.response'; |
||
22 | |||
23 | /** |
||
24 | * HTTP Client |
||
25 | * |
||
26 | * @var HttpClientInterface |
||
27 | */ |
||
28 | protected $client; |
||
29 | |||
30 | /** |
||
31 | * @var EventDispatcherInterface |
||
32 | */ |
||
33 | protected $dispatcher; |
||
34 | |||
35 | /** |
||
36 | * SymfonyEventDispatcherDecorator constructor. |
||
37 | * |
||
38 | * @param HttpClientInterface $client |
||
39 | * @param EventDispatcherInterface $dispatcher |
||
40 | */ |
||
41 | 1 | public function __construct(HttpClientInterface $client, EventDispatcherInterface $dispatcher) |
|
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | 1 | public function request(RequestInterface $request): ResponseInterface |
|
62 | } |