private function ExpressionValidator::getPropertyAccessor in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Constraints/ ExpressionValidator.php, line 106
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;
}