| 1 | <?php declare(strict_types=1); |
||
| 14 | class JsonDecodeMiddleware implements MiddlewareInterface |
||
| 15 | { |
||
| 16 | use PreTrait; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var JsonDecodeService |
||
| 20 | */ |
||
| 21 | private $jsonDecodeService; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * JsonDecode constructor. |
||
| 25 | * @param JsonDecodeService $jsonDecodeService |
||
| 26 | */ |
||
| 27 | public function __construct(JsonDecodeService $jsonDecodeService) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return int |
||
| 34 | */ |
||
| 35 | public function priority(): int |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param ResponseInterface $response |
||
| 42 | * @param array $options |
||
| 43 | * @return CancellablePromiseInterface |
||
| 44 | */ |
||
| 45 | public function post(ResponseInterface $response, array $options = []): CancellablePromiseInterface |
||
| 56 | } |
||
| 57 |