public function LegacyExecutionContextFactory::createContext in Plug 7
Creates a new execution context.
Parameters
ValidatorInterface $validator The validator:
mixed $root The root value of the validated: object graph
Return value
ExecutionContextInterface The new execution context
Overrides ExecutionContextFactoryInterface::createContext
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Context/ LegacyExecutionContextFactory.php, line 63
Class
- LegacyExecutionContextFactory
- Creates new {@link LegacyExecutionContext} instances.
Namespace
Symfony\Component\Validator\ContextCode
public function createContext(ValidatorInterface $validator, $root) {
return new LegacyExecutionContext($validator, $root, $this->metadataFactory, $this->translator, $this->translationDomain);
}