Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\Validator\Context; Chris@0: Chris@0: use Symfony\Component\Validator\Validator\ValidatorInterface; Chris@0: Chris@0: /** Chris@0: * Creates instances of {@link ExecutionContextInterface}. Chris@0: * Chris@0: * You can use a custom factory if you want to customize the execution context Chris@0: * that is passed through the validation run. Chris@0: * Chris@0: * @author Bernhard Schussek Chris@0: */ Chris@0: interface ExecutionContextFactoryInterface Chris@0: { Chris@0: /** Chris@0: * Creates a new execution context. Chris@0: * Chris@0: * @param ValidatorInterface $validator The validator Chris@0: * @param mixed $root The root value of the validated Chris@0: * object graph Chris@0: * Chris@0: * @return ExecutionContextInterface The new execution context Chris@0: */ Chris@0: public function createContext(ValidatorInterface $validator, $root); Chris@0: }