ExecutionContextFactoryInterface

ExecutionContextFactoryInterface

interface ExecutionContextFactoryInterface

Creates instances of {@link ExecutionContextInterface}.

You can use a custom factory if you want to customize the execution context that is passed through the validation run.

Methods

ExecutionContextInterface createContext(ValidatorInterface $validator, mixed $root)

Creates a new execution context.

Details

ExecutionContextInterface createContext(ValidatorInterface $validator, mixed $root)

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
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部