CssCompressorFilter.php 609B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /*
  3. * This file is part of the Assetic package, an OpenSky project.
  4. *
  5. * (c) 2010-2011 OpenSky Project Inc
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Assetic\Filter\Yui;
  11. use Assetic\Asset\AssetInterface;
  12. /**
  13. * CSS YUI compressor filter.
  14. *
  15. * @author Kris Wallsmith <kris.wallsmith@gmail.com>
  16. */
  17. class CssCompressorFilter extends BaseCompressorFilter
  18. {
  19. public function filterDump(AssetInterface $asset)
  20. {
  21. $asset->setContent($this->compress($asset->getContent(), 'css'));
  22. }
  23. }