[Validator] Improved phpdoc of RecursiveValidator
This commit is contained in:
parent
274d4e6195
commit
eeed509dfc
@ -34,7 +34,7 @@ use Symfony\Component\Validator\Node\PropertyNode;
|
|||||||
use Symfony\Component\Validator\Util\PropertyPath;
|
use Symfony\Component\Validator\Util\PropertyPath;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default implementation of {@link ContextualValidatorInterface}.
|
* Recursive implementation of {@link ContextualValidatorInterface}.
|
||||||
*
|
*
|
||||||
* @since 2.5
|
* @since 2.5
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
@ -51,15 +51,20 @@ class RecursiveContextualValidator implements ContextualValidatorInterface
|
|||||||
*/
|
*/
|
||||||
private $metadataFactory;
|
private $metadataFactory;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var ConstraintValidatorFactoryInterface
|
||||||
|
*/
|
||||||
private $validatorFactory;
|
private $validatorFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a validator for the given context.
|
* Creates a validator for the given context.
|
||||||
*
|
*
|
||||||
* @param ExecutionContextInterface $context The execution context
|
* @param ExecutionContextInterface $context The execution context
|
||||||
* @param MetadataFactoryInterface $metadataFactory The factory for fetching
|
* @param MetadataFactoryInterface $metadataFactory The factory for
|
||||||
* the metadata of validated
|
* fetching the metadata
|
||||||
* objects
|
* of validated objects
|
||||||
|
* @param ConstraintValidatorFactoryInterface $validatorFactory The factory for creating
|
||||||
|
* constraint validators
|
||||||
*/
|
*/
|
||||||
public function __construct(ExecutionContextInterface $context, MetadataFactoryInterface $metadataFactory, ConstraintValidatorFactoryInterface $validatorFactory)
|
public function __construct(ExecutionContextInterface $context, MetadataFactoryInterface $metadataFactory, ConstraintValidatorFactoryInterface $validatorFactory)
|
||||||
{
|
{
|
||||||
|
@ -17,7 +17,7 @@ use Symfony\Component\Validator\Context\ExecutionContextInterface;
|
|||||||
use Symfony\Component\Validator\MetadataFactoryInterface;
|
use Symfony\Component\Validator\MetadataFactoryInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default implementation of {@link ValidatorInterface}.
|
* Recursive implementation of {@link ValidatorInterface}.
|
||||||
*
|
*
|
||||||
* @since 2.5
|
* @since 2.5
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
@ -34,6 +34,9 @@ class RecursiveValidator implements ValidatorInterface
|
|||||||
*/
|
*/
|
||||||
protected $metadataFactory;
|
protected $metadataFactory;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var ConstraintValidatorFactoryInterface
|
||||||
|
*/
|
||||||
protected $validatorFactory;
|
protected $validatorFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -44,6 +47,8 @@ class RecursiveValidator implements ValidatorInterface
|
|||||||
* @param MetadataFactoryInterface $metadataFactory The factory for
|
* @param MetadataFactoryInterface $metadataFactory The factory for
|
||||||
* fetching the metadata
|
* fetching the metadata
|
||||||
* of validated objects
|
* of validated objects
|
||||||
|
* @param ConstraintValidatorFactoryInterface $validatorFactory The factory for creating
|
||||||
|
* constraint validators
|
||||||
*/
|
*/
|
||||||
public function __construct(ExecutionContextFactoryInterface $contextFactory, MetadataFactoryInterface $metadataFactory, ConstraintValidatorFactoryInterface $validatorFactory)
|
public function __construct(ExecutionContextFactoryInterface $contextFactory, MetadataFactoryInterface $metadataFactory, ConstraintValidatorFactoryInterface $validatorFactory)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user