function ExecutionContext::__construct
Same name in this branch
- 11.1.x core/lib/Drupal/Core/Validation/ExecutionContext.php \Drupal\Core\Validation\ExecutionContext::__construct()
@internal Called by {@link ExecutionContextFactory}. Should not be used in user code.
Parameters
mixed $root the root value of the validated object graph:
File
-
vendor/
symfony/ validator/ Context/ ExecutionContext.php, line 106
Class
- ExecutionContext
- The context used and created by {@link ExecutionContextFactory}.
Namespace
Symfony\Component\Validator\ContextCode
public function __construct(ValidatorInterface $validator, mixed $root, TranslatorInterface $translator, ?string $translationDomain = null) {
$this->violations = new ConstraintViolationList();
$this->cachedObjectsRefs = new \SplObjectStorage();
}