Skip to content

Commit

Permalink
Add the configuration for the Clock integration
Browse files Browse the repository at this point in the history
When the `clock` service is defined (which is done by FrameworkBundle
when `symfony/clock` is installed), it will be injected in the listeners
supporting a clock integration.
  • Loading branch information
stof committed Feb 13, 2024
1 parent 57ef929 commit 765fe2d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"symfony/dependency-injection": "^5.4 || ^6.0 || ^7.0",
"symfony/event-dispatcher": "^5.4 || ^6.0 || ^7.0",
"symfony/http-kernel": "^5.4 || ^6.0 || ^7.0",
"gedmo/doctrine-extensions": "^3.5.0"
"gedmo/doctrine-extensions": "^3.15.0"
},
"require-dev": {
"phpstan/phpstan": "^1.10",
Expand Down
3 changes: 3 additions & 0 deletions src/Resources/config/softdeleteable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
<call method="setCacheItemPool">
<argument type="service" id="stof_doctrine_extensions.metadata_cache" />
</call>
<call method="setClock">
<argument type="service" id="clock" on-invalid="ignore" />
</call>
<call method="setAnnotationReader">
<argument type="service" id="annotation_reader" on-invalid="ignore" />
</call>
Expand Down
3 changes: 3 additions & 0 deletions src/Resources/config/timestampable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
<call method="setCacheItemPool">
<argument type="service" id="stof_doctrine_extensions.metadata_cache" />
</call>
<call method="setClock">
<argument type="service" id="clock" on-invalid="ignore" />
</call>
<call method="setAnnotationReader">
<argument type="service" id="annotation_reader" on-invalid="ignore" />
</call>
Expand Down

0 comments on commit 765fe2d

Please sign in to comment.