| 1 | <?php |
||
| 16 | class HtmlCompressMiddleware implements MiddlewareInterface |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var Parser |
||
| 20 | */ |
||
| 21 | private $parser; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var bool |
||
| 25 | */ |
||
| 26 | private $debug; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * HtmlCompressMiddleware constructor. |
||
| 30 | * @param Parser $parser |
||
| 31 | * @param bool $debug |
||
| 32 | */ |
||
| 33 | 3 | public function __construct(Parser $parser, bool $debug) |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @param ServerRequestInterface $request |
||
| 41 | * @param RequestHandlerInterface $handler |
||
| 42 | * @return ResponseInterface |
||
| 43 | * @throws \InvalidArgumentException |
||
| 44 | */ |
||
| 45 | 3 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
| 61 | } |
||
| 62 |