1 | <?php |
||
15 | class VirtualExternalModule extends ExternalModule implements CompressInterface |
||
16 | { |
||
17 | |||
18 | public function __construct($path, ResourcesInterface $resources, SystemInterface $system, $moduleId = null) |
||
23 | |||
24 | /** |
||
25 | * This method should be used to override generic compression logic. |
||
26 | * |
||
27 | * @param mixed $obj Pointer to compressor instance |
||
28 | * @param array|null $code Collection of already compressed code |
||
29 | * |
||
30 | * @return bool False if generic compression needs to be avoided |
||
31 | */ |
||
32 | public function beforeCompress(&$obj = null, array &$code = null) |
||
36 | |||
37 | /** |
||
38 | * This method is called after generic compression logic has finished. |
||
39 | * |
||
40 | * @param mixed $obj Pointer to compressor instance |
||
41 | * @param array|null $code Collection of already compressed code |
||
42 | * |
||
43 | * @return bool False if generic compression needs to be avoided |
||
44 | */ |
||
45 | public function afterCompress(&$obj = null, array &$code = null) |
||
49 | } |