Extending Message Buses (Gateways)
Intercepting Gateways
class LoggerInterceptor
{
#[Before(pointcut: CommandBus::class)]
public function log(object $command, array $metadata) : void
{
// log Command message
}
}Building customized Gateways
interface AuditableEventBus extends EventBus {}Pointcut by attributes
Asynchronous Gateways
Last updated
Was this helpful?