class ExecutionContextFactory implements ExecutionContextFactoryInterface
Creates new {@link ExecutionContext} instances.
__construct(TranslatorInterface $translator, string $translationDomain = null) Creates a new context factory. | ||
ExecutionContextInterface | createContext(ValidatorInterface $validator, mixed $root) Creates a new execution context. |
Creates a new context factory.
TranslatorInterface | $translator | The translator |
string | $translationDomain | The translation domain to use for translating violation messages |
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/ExecutionContextFactory.html