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,