Skip to content

PersistDomainEventSubscriber #18

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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