You are here

public function LegacyExecutionContext::__construct in Zircon Profile 8

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

Creates a new context.

@internal Called by {@link LegacyExecutionContextFactory}. Should not be used in user code.

Overrides ExecutionContext::__construct

See also

ExecutionContext::__construct()

File

vendor/symfony/validator/Context/LegacyExecutionContext.php, line 44

Class

LegacyExecutionContext
An execution context that is compatible with the legacy API (< 2.5).

Namespace

Symfony\Component\Validator\Context

Code

public function __construct(ValidatorInterface $validator, $root, MetadataFactoryInterface $metadataFactory, TranslatorInterface $translator, $translationDomain = null) {
  parent::__construct($validator, $root, $translator, $translationDomain);
  $this->metadataFactory = $metadataFactory;
}