1 | <?php declare(strict_types=1); |
||
16 | class JsonDecodeMiddleware implements MiddlewareInterface |
||
17 | { |
||
18 | use PreTrait; |
||
19 | use ErrorTrait; |
||
20 | |||
21 | /** |
||
22 | * @var JsonDecodeService |
||
23 | */ |
||
24 | private $jsonDecodeService; |
||
25 | |||
26 | /** |
||
27 | * JsonDecode constructor. |
||
28 | * @param JsonDecodeService $jsonDecodeService |
||
29 | */ |
||
30 | 2 | public function __construct(JsonDecodeService $jsonDecodeService) |
|
34 | |||
35 | /** |
||
36 | * @param ResponseInterface $response |
||
37 | * @param array $options |
||
38 | * @return CancellablePromiseInterface |
||
39 | * |
||
40 | * @ThirdLast() |
||
41 | */ |
||
42 | 2 | public function post( |
|
63 | } |
||
64 |