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.
ExecutionContextInterface | createContext(ValidatorInterface $validator, mixed $root) Creates a new execution context. |
Creates a new execution context.
ValidatorInterface | $validator | The validator |
mixed | $root | The root value of the validated object graph |
ExecutionContextInterface | The new execution context |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Validator/Context/ExecutionContextFactoryInterface.html