diff --git a/src/Resources/config/services.yml b/src/Resources/config/services.yml index 9218b8f..cb74793 100644 --- a/src/Resources/config/services.yml +++ b/src/Resources/config/services.yml @@ -6,7 +6,9 @@ services: tactician_domain_events.dispatcher: class: BornFree\TacticianDomainEvent\EventDispatcher\EventDispatcher - + lazy: true + tactician_domain_events.middleware.release_recorded_events: class: BornFree\TacticianDomainEvent\Middleware\ReleaseRecordedEventsMiddleware - arguments: ['@tactician_domain_events.doctrine.event_collector', '@tactician_domain_events.dispatcher'] \ No newline at end of file + arguments: ['@tactician_domain_events.doctrine.event_collector', '@tactician_domain_events.dispatcher'] + lazy: true