Skip to content

PersistDomainEventSubscriber #18

@matiux

Description

@matiux

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions