-
- /**
- * {@inheritdoc}
- */
- public function validateValue($value, $constraints, $groups = null)
- {
- @trigger_error('The '.__METHOD__.' method is deprecated in version 2.5 and will be removed in version 3.0. Use the Symfony\Component\Validator\Validator\ValidatorInterface::validate method instead.', E_USER_DEPRECATED);
-
- return $this->validate($value, $constraints, $groups);
- }
-
- /**
- * {@inheritdoc}
- */
- public function getMetadataFactory()
- {
- @trigger_error('The '.__METHOD__.' method is deprecated in version 2.5 and will be removed in version 3.0. Use the Symfony\Component\Validator\Validator\ValidatorInterface::getMetadataFor or Symfony\Component\Validator\Validator\ValidatorInterface::hasMetadataFor method instead.', E_USER_DEPRECATED);
-
- return $this->metadataFactory;
- }
-
- private static function testConstraints($constraints)
- {
- return null === $constraints || $constraints instanceof Constraint || (is_array($constraints) && (0 === count($constraints) || current($constraints) instanceof Constraint));
- }
-
- private static function testGroups($groups)
- {
- return null === $groups || is_string($groups) || $groups instanceof GroupSequence || (is_array($groups) && (0 === count($groups) || is_string(current($groups)) || current($groups) instanceof GroupSequence));
- }