Skip to content

Commit

Permalink
Register services
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Kolb committed May 6, 2024
1 parent 22b4589 commit ee294c0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
12 changes: 12 additions & 0 deletions src/Resources/config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ services:
# Interface autowiring
DigitalCraftsman\DateTimePrecision\Clock\Clock: '@DigitalCraftsman\DateTimePrecision\Clock\SystemClock'

DigitalCraftsman\DateTimePrecision\Clock\SystemClock:
class: DigitalCraftsman\DateTimePrecision\Clock\SystemClock

# Normalizers
DigitalCraftsman\DateTimePrecision\Serializer\MomentNormalizer:
tags: [ { name: 'serializer.normalizer' } ]
Expand All @@ -18,3 +21,12 @@ services:

DigitalCraftsman\DateTimePrecision\Serializer\YearNormalizer:
tags: [ { name: 'serializer.normalizer' } ]

when@test:
services:

# Interface autowiring
DigitalCraftsman\DateTimePrecision\Clock\Clock: '@DigitalCraftsman\DateTimePrecision\Clock\FrozenClock'

DigitalCraftsman\DateTimePrecision\Clock\FrozenClock:
class: DigitalCraftsman\DateTimePrecision\Clock\FrozenClock
4 changes: 0 additions & 4 deletions src/Resources/config/services_test.yaml

This file was deleted.

0 comments on commit ee294c0

Please sign in to comment.