public function LegacyExecutionContext::__construct in Plug 7
Creates a new context.
@internal Called by {@link LegacyExecutionContextFactory}. Should not be used in user code.
Overrides ExecutionContext::__construct
See also
ExecutionContext::__construct()
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Context/ LegacyExecutionContext.php, line 43
Class
- LegacyExecutionContext
- An execution context that is compatible with the legacy API (< 2.5).
Namespace
Symfony\Component\Validator\ContextCode
public function __construct(ValidatorInterface $validator, $root, MetadataFactoryInterface $metadataFactory, TranslatorInterface $translator, $translationDomain = null) {
parent::__construct($validator, $root, $translator, $translationDomain);
$this->metadataFactory = $metadataFactory;
}