Add a WrappingClock

The `WrappingClock` allows using an object with a `now()` method
returning a `DateTimeImmutable` object as a "real" clock.
This commit is contained in:
Jérôme Gamez
2022-04-24 15:38:25 +02:00
parent 98d1e6f1d8
commit f3edef9cbc
5 changed files with 217 additions and 0 deletions
+4
View File
@@ -1,5 +1,9 @@
# CHANGELOG
## 2.1.0 - 2022-04-22
Adds the `WrappingClock` which allows using an object with a `now()` method returning a `DateTimeImmutable` object
as a "real" clock.
## 2.0.0 - 2022-04-20
This release introduces a compatibility layer with the PSR-20 draft, allowing us to already
get some interoperability by depending on a shared interface.