2017 © Pedro Peláez
 

symfony-bundle doctrine-domain-events-bundle

With this Bundle we can send all the events which were generated by entitis at SimpleBus

image

mrazvan92/doctrine-domain-events-bundle

With this Bundle we can send all the events which were generated by entitis at SimpleBus

  • Monday, June 26, 2017
  • by mrazvan92
  • Repository
  • 1 Watchers
  • 0 Stars
  • 41 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

DoctrineDomainEventsBundle

With this Bundle we can send all the events which were generated by entities at SimpleBus, (*1)

Install

  • SimpleBus/SymfonyBridge: http://simplebus.github.io/SymfonyBridge/
  • You need to enable the DoctrineDomainEvents in your project
 $bundles = [
    ...
    new MR\DoctrineDomainEventsBundle\DoctrineDomainEventsBundle(),
    ...
 ];

Usage

  • after doctrine flush this event will be sent at rabbit queue
use SimpleBus\Message\Recorder\{PrivateMessageRecorderCapabilities, ContainsRecordedMessages};

class EntityName implements ContainsRecordedMessages
{
    use PrivateMessageRecorderCapabilities;

    public function __construct()
    {
        $this->record(
            new EventClass(
               'value1',
               'value2'
            )
        );
    }
}

The Versions

26/06 2017

dev-master

9999999-dev

With this Bundle we can send all the events which were generated by entitis at SimpleBus

  Sources   Download

Apache-2.0

The Requires

 

doctrine entity symfony simplebus domain events