1<?php
2
3/*
4 * This file is part of the Assetic package, an OpenSky project.
5 *
6 * (c) 2010-2014 OpenSky Project Inc
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12namespace Assetic\Filter;
13
14use Assetic\Asset\AssetInterface;
15
16/**
17 * Filters assets through Minify_CSS_Compressor.
18 *
19 * All credit for the filter itself is mentioned in the file itself.
20 *
21 * @link https://raw.githubusercontent.com/mrclay/minify/master/min/lib/Minify/CSS/Compressor.php
22 * @author Stephen Clay <steve@mrclay.org>
23 * @author http://code.google.com/u/1stvamp/ (Issue 64 patch)
24 */
25class MinifyCssCompressorFilter implements FilterInterface
26{
27    public function filterLoad(AssetInterface $asset)
28    {
29    }
30
31    public function filterDump(AssetInterface $asset)
32    {
33        $asset->setContent(\Minify_CSS_Compressor::process($asset->getContent()));
34    }
35}
36