<?php

/*
 * This file is part of the Assetic package, an OpenSky project.
 *
 * (c) 2010-2014 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_SimpleFunction
{
    public function __construct($name, $options = array())
    {
        parent::__construct($name, '\Assetic\Extension\Twig\AsseticFilterInvoker::invoke', array_merge($options, array(
            'needs_environment' => false,
            'needs_context' => false,
            'node_class' => '\Assetic\Extension\Twig\AsseticFilterNode',
        )));
    }
}

<?php

/*
 * This file is part of the Assetic package, an OpenSky project.
 *
 * (c) 2010-2014 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_SimpleFunction
{
    public function __construct($name, $options = array())
    {
        parent::__construct($name, null, array_merge($options, array(
            'needs_environment' => false,
            'needs_context' => false,
            'node_class' => '\Assetic\Extension\Twig\AsseticFilterNode',
        )));
    }
}

Fix the compatibility with Twig 2
Fix the compatibility with Twig 2
