Skip to content

With thist Bundle we can send all the events which were generated by entities at SimpleBus

Notifications You must be signed in to change notification settings

mrazvan21/DoctrineDomainEventsBundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DoctrineDomainEventsBundle

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

Install

 $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'
            )
        );
    }
}

About

With thist Bundle we can send all the events which were generated by entities at SimpleBus

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages