20 if (
preg_match(
'~[\.-]min\.~', $hook->getParam(
'view'))) {
25 switch ($hook->getType()) {
31 $minifier = new \MatthiasMullie\Minify\JS($hook->getValue());
32 return $minifier->minify();
38 $minifier = new \MatthiasMullie\Minify\CSS($hook->getValue());
39 return $minifier->minify();
Models an event passed to hook handlers.
__invoke(\Elgg\Hook $hook)
Minifies simplecache CSS and JS views by handling the 'simplecache:generate' hook.
_elgg_services()
Get the global service provider.