public function LegacyExecutionContextFactory::__construct in Plug 7
Creates a new context factory.
Parameters
MetadataFactoryInterface $metadataFactory The metadata factory:
TranslatorInterface $translator The translator:
string|null $translationDomain The translation domain: to use for translating violation messages
File
- lib/Symfony/ validator/ Symfony/ Component/ Validator/ Context/ LegacyExecutionContextFactory.php, line 53 
Class
- LegacyExecutionContextFactory
- Creates new {@link LegacyExecutionContext} instances.
Namespace
Symfony\Component\Validator\ContextCode
public function __construct(MetadataFactoryInterface $metadataFactory, TranslatorInterface $translator, $translationDomain = null) {
  $this->metadataFactory = $metadataFactory;
  $this->translator = $translator;
  $this->translationDomain = $translationDomain;
}