Alan Gabriel Bem
Alan Gabriel Bem
```php interface Correlatable { /** * @throws InvalidEventGiven */ public function correlate(Event\Envelope $envelope): Listener\Id; } ``` ```php class OrderSaga implements Listener, Listener\Correlatable { use Listener\Correlating; public static function correlateByOrderPlaced(OrderPlaced $event):...
**Description:** **Problem/Motivation:** Currently, stateful listeners like Process Managers and Sagas often need to be instantiated or identified based on specific data within an incoming event (correlation). This logic, which maps...