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