| 1 | <?php |
||
| 10 | class Encoder extends Resolver |
||
| 11 | { |
||
| 12 | protected $transformers = [ |
||
| 13 | 'gzip' => [__CLASS__, 'gzip'], |
||
| 14 | 'deflate' => [__CLASS__, 'deflate'], |
||
| 15 | ]; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Gzip minifier using gzencode(). |
||
| 19 | * |
||
| 20 | * @param StreamInterface $input |
||
| 21 | * @param StreamInterface $output |
||
| 22 | * |
||
| 23 | * @return ResponseInterface |
||
| 24 | */ |
||
| 25 | public static function gzip(StreamInterface $input, StreamInterface $output) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Gzip minifier using gzdeflate(). |
||
| 34 | * |
||
| 35 | * @param StreamInterface $input |
||
| 36 | * @param StreamInterface $output |
||
| 37 | * |
||
| 38 | * @return ResponseInterface |
||
| 39 | */ |
||
| 40 | public static function deflate(StreamInterface $input, StreamInterface $output) |
||
| 46 | } |
||
| 47 |