You are here

public function ExecutionContextFactoryInterface::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

2 methods override ExecutionContextFactoryInterface::createContext()
ExecutionContextFactory::createContext in lib/Symfony/validator/Symfony/Component/Validator/Context/ExecutionContextFactory.php
Creates a new execution context.
LegacyExecutionContextFactory::createContext in lib/Symfony/validator/Symfony/Component/Validator/Context/LegacyExecutionContextFactory.php
Creates a new execution context.

File

lib/Symfony/validator/Symfony/Component/Validator/Context/ExecutionContextFactoryInterface.php, line 36

Class

ExecutionContextFactoryInterface
Creates instances of {@link ExecutionContextInterface}.

Namespace

Symfony\Component\Validator\Context

Code

public function createContext(ValidatorInterface $validator, $root);