public function ExecutionContextFactory::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/ ExecutionContextFactory.php, line 55
Class
- ExecutionContextFactory
- Creates new {@link ExecutionContext} instances.
Namespace
Symfony\Component\Validator\ContextCode
public function createContext(ValidatorInterface $validator, $root) {
return new ExecutionContext($validator, $root, $this->translator, $this->translationDomain);
}