Skip to content

Commit

Permalink
Fixing services names
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Aug 29, 2024
1 parent 7e67403 commit f0f8475
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DI/DateTimeFactoryExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f0f8475

Please sign in to comment.