From 5a920861482a389511929394558edc03fe764f91 Mon Sep 17 00:00:00 2001 From: Marcel Diegelmann Date: Fri, 12 Dec 2025 15:23:52 +0100 Subject: [PATCH] =?UTF-8?q?EntityExporter:=20Konstruktor-Deklaration=20kor?= =?UTF-8?q?rigieren;=20Dienstkonfiguration=20f=C3=BCr=20Tests=20aktualisie?= =?UTF-8?q?ren?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- config/services.yaml | 7 +++++++ src/Services/ImportExportSystem/EntityExporter.php | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/config/services.yaml b/config/services.yaml index 581b0bde..e54b3242 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -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 diff --git a/src/Services/ImportExportSystem/EntityExporter.php b/src/Services/ImportExportSystem/EntityExporter.php index 3256011e..72d7a27d 100644 --- a/src/Services/ImportExportSystem/EntityExporter.php +++ b/src/Services/ImportExportSystem/EntityExporter.php @@ -64,7 +64,7 @@ class EntityExporter { public function __construct( protected SerializerInterface $serializer, - protected AssemblyPartAggregator $partAggregator, private readonly AssemblyPartAggregator $assemblyPartAggregator + protected AssemblyPartAggregator $assemblyPartAggregator, ) { }