private function ExpressionValidator::getExpressionLanguage in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Constraints/ExpressionValidator.php \Symfony\Component\Validator\Constraints\ExpressionValidator::getExpressionLanguage()
File
- vendor/
symfony/ validator/ Constraints/ ExpressionValidator.php, line 100
Class
- ExpressionValidator
- @author Fabien Potencier <fabien@symfony.com> @author Bernhard Schussek <bschussek@symfony.com>
Namespace
Symfony\Component\Validator\ConstraintsCode
private function getExpressionLanguage() {
if (null === $this->expressionLanguage) {
if (!class_exists('Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage')) {
throw new RuntimeException('Unable to use expressions as the Symfony ExpressionLanguage component is not installed.');
}
$this->expressionLanguage = new ExpressionLanguage();
}
return $this->expressionLanguage;
}