mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-04 10:24:42 +02:00
3f6a2fc7fa
no message
18 lines
439 B
PHP
18 lines
439 B
PHP
<?php
|
|
|
|
use MatthiasMullie\Minify\CSS;
|
|
|
|
class CSSminifierExtended extends CSS {
|
|
|
|
public function getDataHash() {
|
|
return sha1(json_encode($this->accessProtected($this,'data')));
|
|
}
|
|
|
|
private function accessProtected($obj, $prop) {
|
|
$reflection = new ReflectionClass($obj);
|
|
$property = $reflection->getProperty($prop);
|
|
$property->setAccessible(true);
|
|
return $property->getValue($obj);
|
|
}
|
|
|
|
} |