respect-validation/tests
Henrique Moody ab602ae1bb
Improve how to customize the Factory
The constructor of "Factory" has three arguments and, even though none
of them are needed, they are all required. Those arguments allow users
to customize the namespaces of rules and exceptions, and also to define
a callable that will translate the template messages.

This commit will remove those parameters from the constructor of
"Factory," and create methods that will allow users to customize the
namespaces and the translator.

The methods that this commit will create will not change the state of
"Factory," but they will create a clone with the customizations. It is
imperative that the "Factory" is immutable. Since the "Factory" is a
Singleton, allowing it to change could cause unexpected behaviors.

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-05-12 12:24:44 +02:00
..
fixtures Update PHP support 2018-12-02 11:09:24 +01:00
integration Improve how to customize the Factory 2019-05-12 12:24:44 +02:00
library Fix the case of the "@inheritDoc" tag 2019-04-05 19:02:12 +02:00
unit Improve how to customize the Factory 2019-05-12 12:24:44 +02:00