1 | <?php |
||
14 | class JsonContentMiddleware implements MiddlewareInterface |
||
15 | { |
||
16 | protected $type = 'application/json'; |
||
17 | protected $assoc = true; |
||
18 | protected $depth = 512; |
||
19 | protected $opts = 0; |
||
20 | |||
21 | 4 | public function __construct(bool $assoc = true, int $depth = 512, int $opts = 0) |
|
27 | |||
28 | 4 | public function process(ServerRequestInterface $req, RequestHandlerInterface $handler): ResponseInterface |
|
37 | |||
38 | 3 | protected function parse(StreamInterface $body)//: array |
|
56 | } |