/** * {@inheritdoc} */ public function validate($value, $subPath = '', $groups = null, $traverse = false, $deep = false) { $propertyPath = $this->getPropertyPath($subPath); foreach ($this->resolveGroups($groups) as $group) { $this->globalContext->getVisitor()->validate($value, $group, $propertyPath, $traverse, $deep); } }
/** * Returns the graph walker instance. * * @return GraphWalker The graph walker. * * @deprecated Deprecated since version 2.2, to be removed in 2.3. Use * {@link validate} and {@link validateValue} instead. */ public function getGraphWalker() { trigger_error('getGraphWalker() is deprecated since version 2.2 and will be removed in 2.3. Use validate() and validateValue() instead', E_USER_DEPRECATED); return $this->globalContext->getVisitor()->getGraphWalker(); }