| 1 | <?php |
||
| 13 | class RemoteCache extends OnlineMinifier |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var string Minifier service's URL |
||
| 17 | */ |
||
| 18 | public $url = 'http://s9e-textformatter.rhcloud.com/minifier/'; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * {@inheritdoc} |
||
| 22 | */ |
||
| 23 | public function minify($src) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Compute a source's hash |
||
| 37 | * |
||
| 38 | * 160 bits of SHA1 + 128 bits of MD5, base64-encoded to a 48 bytes string |
||
| 39 | * |
||
| 40 | * @param string $src Original source |
||
| 41 | * @return string 48 bytes string |
||
| 42 | */ |
||
| 43 | protected function getHash($src) |
||
| 47 | } |