Skip to content

Commit 765fe2d

Browse files
committed
Add the configuration for the Clock integration
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.
1 parent 57ef929 commit 765fe2d

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"symfony/dependency-injection": "^5.4 || ^6.0 || ^7.0",
1919
"symfony/event-dispatcher": "^5.4 || ^6.0 || ^7.0",
2020
"symfony/http-kernel": "^5.4 || ^6.0 || ^7.0",
21-
"gedmo/doctrine-extensions": "^3.5.0"
21+
"gedmo/doctrine-extensions": "^3.15.0"
2222
},
2323
"require-dev": {
2424
"phpstan/phpstan": "^1.10",

src/Resources/config/softdeleteable.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
<call method="setCacheItemPool">
1313
<argument type="service" id="stof_doctrine_extensions.metadata_cache" />
1414
</call>
15+
<call method="setClock">
16+
<argument type="service" id="clock" on-invalid="ignore" />
17+
</call>
1518
<call method="setAnnotationReader">
1619
<argument type="service" id="annotation_reader" on-invalid="ignore" />
1720
</call>

src/Resources/config/timestampable.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
<call method="setCacheItemPool">
1313
<argument type="service" id="stof_doctrine_extensions.metadata_cache" />
1414
</call>
15+
<call method="setClock">
16+
<argument type="service" id="clock" on-invalid="ignore" />
17+
</call>
1518
<call method="setAnnotationReader">
1619
<argument type="service" id="annotation_reader" on-invalid="ignore" />
1720
</call>

0 commit comments

Comments
 (0)