Symfony\Component\Validator\ExecutionContext::__construct PHP Method

__construct() public method

public __construct ( $root, Symfony\Component\Validator\GraphWalker $graphWalker, Symfony\Component\Validator\Mapping\ClassMetadataFactoryInterface $metadataFactory )
$graphWalker Symfony\Component\Validator\GraphWalker
$metadataFactory Symfony\Component\Validator\Mapping\ClassMetadataFactoryInterface
    public function __construct(
        $root,
        GraphWalker $graphWalker,
        ClassMetadataFactoryInterface $metadataFactory
    )
    {
        $this->root = $root;
        $this->graphWalker = $graphWalker;
        $this->metadataFactory = $metadataFactory;
        $this->violations = new ConstraintViolationList();
    }