respect-validation/tests/unit/Message
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
..
Formatter Update how we handle templates 2025-12-22 14:05:55 +01:00
Modifier Enable adding modifiers without changing InterpolationRenderer 2025-12-30 11:17:11 +01:00
StandardFormatter Split the Formatter into different formatters 2025-12-19 16:20:28 +01:00
Stringifier Move important value objects to the root namespace 2025-12-21 11:14:47 +01:00
Translator Upgrade translation mechanism 2024-12-05 15:42:40 +01:00
InterpolationRendererTest.php Enable adding modifiers without changing InterpolationRenderer 2025-12-30 11:17:11 +01:00