respect-validation/library
Henrique Moody cd6bcd470b
Enable adding modifiers without changing InterpolationRenderer
The `InterpolationRenderer` was violating the open-closed principle,
because every time we would want to add a new modifier, we would need to
change its implementation.

This commit changes that behaviour by creating a `Modifier` interface.
The classes implementing that interface are using a chain of
responsibility to pass the data to the next one. Using a chain of
responsibility makes a lot of sense, since it's only possible to have
one modifier at a time.
2025-12-30 11:17:11 +01:00
..
Exceptions Enable validating inputs without throwing exceptions 2025-12-22 20:37:11 +01:00
Helpers Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
Message Enable adding modifiers without changing InterpolationRenderer 2025-12-30 11:17:11 +01:00
Mixins Refactor the NotEmpty rule 2025-12-29 12:48:35 +01:00
Rules Refactor the NotEmpty rule 2025-12-29 12:48:35 +01:00
Transformers Refactor the NotEmpty rule 2025-12-29 12:48:35 +01:00
CloneValidatorFactory.php Use a DI container to create instances of Validator 2025-12-22 13:12:04 +01:00
ContainerRegistry.php Enable adding modifiers without changing InterpolationRenderer 2025-12-30 11:17:11 +01:00
Factory.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
Id.php Move important value objects to the root namespace 2025-12-21 11:14:47 +01:00
Name.php Move important value objects to the root namespace 2025-12-21 11:14:47 +01:00
OnlyFailedChildrenResultFilter.php Change how we trace the path of results 2025-12-20 22:19:17 +01:00
Path.php Do not overwrite existing names 2025-12-26 14:48:23 +01:00
Result.php Create named constructor to create Result 2025-12-26 22:34:43 +01:00
ResultFilter.php Split the Formatter into different formatters 2025-12-19 16:20:28 +01:00
ResultQuery.php Enable validating inputs without throwing exceptions 2025-12-22 20:37:11 +01:00
Rule.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
Validator.php Enable validating inputs without throwing exceptions 2025-12-22 20:37:11 +01:00
ValidatorFactory.php Use a DI container to create instances of Validator 2025-12-22 13:12:04 +01:00