Revert "Migrated deprecated doctrine event subsrcibers"

For some very very weird reasoning this cause issues with the ObjectNormalizer, which does not get an an serializer injected anymore.
When the EventLoggerSubscriber is a doctrine subscriber it seems that the serializer service is initialized (as its requested in constructor but not used) and later injected into the object normalizer.
When its an listener, this does not work anymore.
This commit is contained in:
Jan Böhmer 2023-12-07 00:17:27 +01:00
parent d7383539ba
commit b5721dcfd0
3 changed files with 24 additions and 13 deletions

View file

@ -76,7 +76,7 @@ services:
# Only the event classes specified here are saved to DB (set to []) to log all events
$whitelist: []
App\EventListener\LogSystem\EventLoggerListener:
App\EventSubscriber\LogSystem\EventLoggerSubscriber:
arguments:
$save_changed_fields: '%env(bool:HISTORY_SAVE_CHANGED_FIELDS)%'
$save_changed_data: '%env(bool:HISTORY_SAVE_CHANGED_DATA)%'
@ -85,7 +85,7 @@ services:
tags:
- { name: 'doctrine.event_subscriber' }
App\EventListener\LogSystem\LogDBMigrationListener:
App\EventSubscriber\LogSystem\LogDBMigrationSubscriber:
tags:
- { name: 'doctrine.event_subscriber' }