4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\DependencyInjection;
14 use Symfony\Component\ExpressionLanguage\ExpressionLanguage as BaseExpressionLanguage;
15 use Symfony\Component\ExpressionLanguage\ParserCache\ParserCacheInterface;
18 * Adds some function to the default ExpressionLanguage.
20 * @author Fabien Potencier <fabien@symfony.com>
22 * @see ExpressionLanguageProvider
24 class ExpressionLanguage extends BaseExpressionLanguage
26 public function __construct(ParserCacheInterface $cache = null, array $providers = array())
28 // prepend the default provider to let users override it easily
29 array_unshift($providers, new ExpressionLanguageProvider());
31 parent::__construct($cache, $providers);