Skip to content

Commit f72c515

Browse files
committed
Fix the service definitions when the logger is not set in listener
The empty tag is parsed to an empty string, not to null. And this is not a valid value for the service
1 parent 2215d07 commit f72c515

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Resources/config/mongodb.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<argument type="collection" /> <!-- events -->
2727
<argument type="service" id="fos_elastica.indexable" />
2828
<argument type="collection" /> <!-- configuration -->
29-
<argument /> <!-- logger -->
29+
<argument>null</argument> <!-- logger -->
3030
</service>
3131

3232
<service id="fos_elastica.elastica_to_model_transformer.prototype.mongodb" class="%fos_elastica.elastica_to_model_transformer.prototype.mongodb.class%" public="false" abstract="true">

Resources/config/orm.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<argument type="collection" /> <!-- events -->
2626
<argument type="service" id="fos_elastica.indexable" />
2727
<argument type="collection" /> <!-- configuration -->
28-
<argument on-invalid="ignore" /> <!-- logger -->
28+
<argument>null</argument> <!-- logger -->
2929
</service>
3030

3131
<service id="fos_elastica.elastica_to_model_transformer.prototype.orm" class="%fos_elastica.elastica_to_model_transformer.prototype.orm.class%" public="false" abstract="true">

0 commit comments

Comments
 (0)