ddd icon indicating copy to clipboard operation
ddd copied to clipboard

PersistDomainEventSubscriber

Open matiux opened this issue 8 years ago • 0 comments

Hi, can you suggest me how can I subscribe PersistDomainEventSubscriber globally on Symfony 3?

For now I have registered this two services:

  event.repository:
    class: Messenger\Infrastructure\Application\Notification\DoctrineEventStoreRepository
    factory: ['@doctrine', getRepository]
    arguments: ['Messenger\Domain\Event\StoredEvent']

  event.publisher:
    class: Messenger\Domain\DomainEventPublisher
    factory: ['Messenger\Domain\DomainEventPublisher', instance]

but I don't understand how (and where) can I subscribe my subscribers

Thanks

matiux avatar Dec 04 '16 22:12 matiux