Skip to content

Commit

Permalink
Merge pull request #5 from FastyBird/hotfix/service-naming
Browse files Browse the repository at this point in the history
Fixing services names
  • Loading branch information
akadlec authored Aug 29, 2024
2 parents 7e67403 + f0f8475 commit 7362813
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 7362813

Please sign in to comment.