From 22b45895823d235d5648fad536aeddc0a4b0a64e Mon Sep 17 00:00:00 2001 From: Christian Kolb Date: Mon, 6 May 2024 09:04:28 +0200 Subject: [PATCH] Add missing autowiring of clock --- src/Resources/config/services.yaml | 4 ++++ src/Resources/config/services_test.yaml | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 src/Resources/config/services_test.yaml diff --git a/src/Resources/config/services.yaml b/src/Resources/config/services.yaml index 9c00364..a947cae 100644 --- a/src/Resources/config/services.yaml +++ b/src/Resources/config/services.yaml @@ -1,5 +1,9 @@ services: + # Interface autowiring + DigitalCraftsman\DateTimePrecision\Clock\Clock: '@DigitalCraftsman\DateTimePrecision\Clock\SystemClock' + + # Normalizers DigitalCraftsman\DateTimePrecision\Serializer\MomentNormalizer: tags: [ { name: 'serializer.normalizer' } ] diff --git a/src/Resources/config/services_test.yaml b/src/Resources/config/services_test.yaml new file mode 100644 index 0000000..a563b98 --- /dev/null +++ b/src/Resources/config/services_test.yaml @@ -0,0 +1,4 @@ +services: + + # Interface autowiring + DigitalCraftsman\DateTimePrecision\Clock\Clock: '@DigitalCraftsman\DateTimePrecision\Clock\FrozenClock'