Skip to content

Commit

Permalink
Mark services as lazy
Browse files Browse the repository at this point in the history
Due to circular reference bug
  • Loading branch information
uro authored May 22, 2017
1 parent 0ec1ded commit 77f5f30
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Resources/config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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']
arguments: ['@tactician_domain_events.doctrine.event_collector', '@tactician_domain_events.dispatcher']
lazy: true

0 comments on commit 77f5f30

Please sign in to comment.