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;
17 * Adds some function to the default ExpressionLanguage.
19 * @author Fabien Potencier <fabien@symfony.com>
21 * @see ExpressionLanguageProvider
23 class ExpressionLanguage extends BaseExpressionLanguage
28 public function __construct($cache = null, array $providers = array(), callable $serviceCompiler = null)
30 // prepend the default provider to let users override it easily
31 array_unshift($providers, new ExpressionLanguageProvider($serviceCompiler));
33 parent::__construct($cache, $providers);