Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\DependencyInjection; Chris@0: Chris@0: use Symfony\Component\ExpressionLanguage\ExpressionLanguage as BaseExpressionLanguage; Chris@0: Chris@0: /** Chris@0: * Adds some function to the default ExpressionLanguage. Chris@0: * Chris@0: * @author Fabien Potencier Chris@0: * Chris@0: * @see ExpressionLanguageProvider Chris@0: */ Chris@0: class ExpressionLanguage extends BaseExpressionLanguage Chris@0: { Chris@12: /** Chris@12: * {@inheritdoc} Chris@12: */ Chris@17: public function __construct($cache = null, array $providers = [], callable $serviceCompiler = null) Chris@0: { Chris@0: // prepend the default provider to let users override it easily Chris@12: array_unshift($providers, new ExpressionLanguageProvider($serviceCompiler)); Chris@0: Chris@0: parent::__construct($cache, $providers); Chris@0: } Chris@0: }