1 | <?php |
||
20 | class VirtualModule extends ExternalModule implements CompressInterface |
||
21 | { |
||
22 | /** |
||
23 | * VirtualModule constructor. |
||
24 | * |
||
25 | * @param string $path |
||
26 | * @param ResourcesInterface $resources |
||
27 | * @param SystemInterface $system |
||
28 | * @param null $moduleId |
||
29 | */ |
||
30 | public function __construct($path, ResourcesInterface $resources, SystemInterface $system, $moduleId = null) |
||
36 | |||
37 | /** |
||
38 | * This method should be used to override generic compression logic. |
||
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 beforeCompress(&$obj = null, array &$code = null) |
||
49 | |||
50 | /** |
||
51 | * This method is called after generic compression logic has finished. |
||
52 | * |
||
53 | * @param mixed $obj Pointer to compressor instance |
||
54 | * @param array|null $code Collection of already compressed code |
||
55 | * |
||
56 | * @return bool False if generic compression needs to be avoided |
||
57 | */ |
||
58 | public function afterCompress(&$obj = null, array &$code = null) |
||
62 | } |