Source of file AsseticFilterFunction.php
Size: 0,665 Bytes - Last Modified: 2013-06-02T00:13:43+02:00
/home/theseer/Downloads/Symfony/vendor/kriswallsmith/assetic/src/Assetic/Extension/Twig/AsseticFilterFunction.php
123456789101112131415161718192021222324252627282930 | <?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. */ namespace Assetic\Extension\Twig; class AsseticFilterFunction extends \Twig_Function { private $filter; public function __construct($filter, $options = array()) { $this->filter = $filter; parent::__construct($options); } public function compile() { return sprintf('$this->env->getExtension(\'assetic\')->getFilterInvoker(\'%s\')->invoke', $this->filter); } } |