mirror of
https://github.com/symfony/validator.git
synced 2026-03-24 01:12:13 +01:00
c6d89387e24077dc76755ff7361b2c8a385ef325
Use ClockInterface and DatePoint in AbstractComparisonValidator and RangeValidator so that relative date strings (e.g. "now", "-40 days") are resolved against the injected clock instead of the system clock. This makes date comparisons testable with MockClock while remaining fully backward compatible (falls back to system clock when no clock is injected).
Validator Component
The Validator component provides tools to validate values following the JSR-303 Bean Validation specification.
Resources
Languages
PHP
100%