4
* This file is part of the Assetic package, an OpenSky project.
6
* (c) 2010-2013 OpenSky Project Inc
8
* For the full copyright and license information, please view the LICENSE
9
* file that was distributed with this source code.
12
namespace Assetic\Extension\Twig;
14
class AsseticFilterFunction extends \Twig_Function
18
public function __construct($filter, $options = array())
20
$this->filter = $filter;
22
parent::__construct($options);
25
public function compile()
27
return sprintf('$this->env->getExtension(\'assetic\')->getFilterInvoker(\'%s\')->invoke', $this->filter);