<?php/*
* This file is part of the Assetic package, an OpenSky project.
*
* (c) 2010-2013 OpenSky Project Inc
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/namespaceAssetic\Filter;
useAssetic\Asset\AssetInterface;
/**
* Filters assets through JSMinPlus.
*
* All credit for the filter itself is mentioned in the file itself.
*
* @link https://raw.github.com/mrclay/minify/master/min/lib/JSMinPlus.php
* @author Brunoais <brunoaiss@gmail.com>
*/class JSMinPlusFilterimplements FilterInterface {
public functionfilterLoad(AssetInterface $asset) {
}
public functionfilterDump(AssetInterface $asset) {
$asset
->setContent(\JSMinPlus::minify($asset
->getContent()));
}
}