| 1 | <?php |
||
| 17 | class NotifiesDomainEvents implements MessageBusMiddleware |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var MessageBus |
||
| 21 | */ |
||
| 22 | private $eventBus; |
||
| 23 | /** |
||
| 24 | * @var CollectsEventsFromEntities |
||
| 25 | */ |
||
| 26 | private $collectsEventsFromEntities; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var LoggerInterface |
||
| 30 | */ |
||
| 31 | private $logger; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param LoggerInterface $logger |
||
| 35 | * @param MessageBus $eventBus |
||
| 36 | * @param CollectsEventsFromEntities $collectsEventsFromEntities |
||
| 37 | */ |
||
| 38 | public function __construct( |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param object $message |
||
| 50 | * @param callable $next |
||
| 51 | */ |
||
| 52 | public function handle($message, callable $next) |
||
| 64 | } |
||
| 65 |