CommandEventBus
- Full name:
\Codefy\EventBus\CommandEventBus
- This class is marked as final and can't be subclassed
- This class implements:
\Codefy\EventBus\EventBus
- This class is a Final class
Properties
subscribers
eventStore
publisher
Methods
__construct
public __construct(\Codefy\Domain\EventSourcing\EventStore $eventStore, \Codefy\EventBus\DomainEventPublisher $publisher): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$eventStore | \Codefy\Domain\EventSourcing\EventStore | |
$publisher | \Codefy\EventBus\DomainEventPublisher |
__clone
subscribe
Parameters:
Parameter | Type | Description |
---|---|---|
$subscriber | \Codefy\EventBus\DomainEventSubscriber |
unsubscribe
Parameters:
Parameter | Type | Description |
---|---|---|
$subscriber | \Codefy\EventBus\DomainEventSubscriber |
publish
Parameters:
Parameter | Type | Description |
---|---|---|
$events | \Codefy\Domain\EventSourcing\DomainEvent |
getSubscriberUniqueKey
Parameters:
Parameter | Type | Description |
---|---|---|
$subscriber | \Codefy\EventBus\DomainEventSubscriber |
Automatically generated on 2025-10-13