mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-16 23:29:33 +00:00
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:
parent
86ac2822b7
commit
5a92086148
2 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue