Skip to content

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages