git subrepo clone https://github.com/mailcow/mailcow-dockerized.git mailcow/src/mailcow-dockerized

subrepo: subdir:   "mailcow/src/mailcow-dockerized"
  merged:   "a832becb"
upstream: origin:   "https://github.com/mailcow/mailcow-dockerized.git"
  branch:   "master"
  commit:   "a832becb"
git-subrepo: version:  "0.4.3"
  origin:   "???"
  commit:   "???"
Change-Id: If5be2d621a211e164c9b6577adaa7884449f16b5
diff --git a/mailcow/src/mailcow-dockerized/data/web/inc/lib/JSminifierExtended.php b/mailcow/src/mailcow-dockerized/data/web/inc/lib/JSminifierExtended.php
new file mode 100644
index 0000000..c891cb8
--- /dev/null
+++ b/mailcow/src/mailcow-dockerized/data/web/inc/lib/JSminifierExtended.php
@@ -0,0 +1,18 @@
+<?php
+
+use MatthiasMullie\Minify\JS;
+
+class JSminifierExtended extends JS {
+
+    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);
+    }
+
+}
\ No newline at end of file