Simple DI clock implementation
v1.0.2 2020-12-14 09:54 UTC
Simple library I wrote because I'm tired of writing it all the time for each project where I need current time.
Can be used with symfony via rikudou/clock-bundle.
composer require rikudou/clock
- Typehint the
\Rikudou\Clock\ClockInterfaceas your dependency in whatever DI you use
- You can now easily test your time dependent functions