From f0f847508e55978f016d827c9c62af6938d69853 Mon Sep 17 00:00:00 2001 From: Adam Kadlec Date: Thu, 29 Aug 2024 17:19:07 +0200 Subject: [PATCH] Fixing services names --- src/DI/DateTimeFactoryExtension.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DI/DateTimeFactoryExtension.php b/src/DI/DateTimeFactoryExtension.php index 82c678d..ea5649e 100644 --- a/src/DI/DateTimeFactoryExtension.php +++ b/src/DI/DateTimeFactoryExtension.php @@ -71,14 +71,14 @@ public function loadConfiguration(): void } if ($configuration->system) { - $builder->addDefinition($this->prefix('datetime.factory'), new DI\Definitions\ServiceDefinition()) + $builder->addDefinition($this->prefix('datetime.system'), new DI\Definitions\ServiceDefinition()) ->setType(DateTimeFactory\SystemClock::class) ->setArgument('timeZone', new DateTimeZone($configuration->timeZone)) ->setAutowired($configuration->frozen === null); } if ($configuration->frozen !== null) { - $builder->addDefinition($this->prefix('datetime.factory'), new DI\Definitions\ServiceDefinition()) + $builder->addDefinition($this->prefix('datetime.frozen'), new DI\Definitions\ServiceDefinition()) ->setType(DateTimeFactory\FrozenClock::class) ->setArguments([ 'timestamp' => $configuration->frozen,