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\Extension\Twig; 13 14class AsseticFilterNode extends \Twig_Node_Expression_Function 15{ 16 protected function compileCallable(\Twig_Compiler $compiler) 17 { 18 $compiler->raw(sprintf('$this->env->getExtension(\'Assetic\\Extension\\Twig\\AsseticExtension\')->getFilterInvoker(\'%s\')->invoke', $this->getAttribute('name'))); 19 20 $this->compileArguments($compiler); 21 } 22} 23