You are here

public function LegacyConstraintViolationBuilder::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Violation/LegacyConstraintViolationBuilder.php \Symfony\Component\Validator\Violation\LegacyConstraintViolationBuilder::__construct()

File

vendor/symfony/validator/Violation/LegacyConstraintViolationBuilder.php, line 65

Class

LegacyConstraintViolationBuilder
Backwards-compatible implementation of {@link ConstraintViolationBuilderInterface}.

Namespace

Symfony\Component\Validator\Violation

Code

public function __construct(ExecutionContextInterface $context, $message, array $parameters) {
  $this->context = $context;
  $this->message = $message;
  $this->parameters = $parameters;
  $this->invalidValue = $context
    ->getValue();
}