1 | <?php declare(strict_types=1); |
||
15 | class JsonDecodeMiddleware implements MiddlewareInterface |
||
16 | { |
||
17 | use PreTrait; |
||
18 | use ErrorTrait; |
||
19 | |||
20 | /** |
||
21 | * @var JsonDecodeService |
||
22 | */ |
||
23 | private $jsonDecodeService; |
||
24 | |||
25 | /** |
||
26 | * JsonDecode constructor. |
||
27 | * @param JsonDecodeService $jsonDecodeService |
||
28 | */ |
||
29 | 3 | public function __construct(JsonDecodeService $jsonDecodeService) |
|
33 | |||
34 | /** |
||
35 | * @return int |
||
36 | */ |
||
37 | 1 | public function priority(): int |
|
41 | |||
42 | /** |
||
43 | * @param ResponseInterface $response |
||
44 | * @param array $options |
||
45 | * @return CancellablePromiseInterface |
||
46 | */ |
||
47 | 2 | public function post(ResponseInterface $response, array $options = []): CancellablePromiseInterface |
|
58 | } |
||
59 |