saloon
saloon copied to clipboard
Add PSR-20 Clock Support
Fix issue #508
Added support for PSR-20 to enhance testability.
Furthermore, we do not rely on specific implementations of PSR-20—any project using this library can adopt any date library that implements the PSR-20 specification, such as Carbon or the Symfony Clock Component. This approach offers greater flexibility.
@craigpotter When you have a moment, please review this PR and share any feedback you may have.
The code looks good @yankewei - and I quite like the idea of it. If you could give me a couple more weeks I will get round to reviewing properly.