EntityExporter: Konstruktor-Deklaration korrigieren; Dienstkonfiguration für Tests aktualisieren

Fügt Standardwerte für autowire und autoconfigure in der Testumgebung hinzu. Markiert EntityExporter als öffentlich und bereinigt die Konstruktor-Definition in der zugehörigen Klasse.
This commit is contained in:
Marcel Diegelmann 2025-12-12 15:23:52 +01:00
parent 86ac2822b7
commit 5a92086148
2 changed files with 8 additions and 1 deletions

View file

@ -283,6 +283,10 @@ services:
when@test: &test
services:
_defaults:
autowire: true
autoconfigure: true
# Decorate the doctrine fixtures load command to use our custom purger by default
doctrine.fixtures_load_command.custom:
decorates: doctrine.fixtures_load_command
@ -291,3 +295,6 @@ when@test: &test
- '@doctrine.fixtures.loader'
- '@doctrine'
- { default: '@App\Doctrine\Purger\DoNotUsePurgerFactory' }
App\Services\ImportExportSystem\EntityExporter:
public: true