$this->flowDispatcher->
dispatch($event);
} public static function flowsData(): \Generator
{ yield 'Single flow' =>
[[ 'state_enter.order.state.in_progress' =>
[ [ 'id' => Uuid::
randomHex(),
'name' => 'Order enters status in progress',
'payload' =>
new Flow(Uuid::
randomHex()),
],
],
]];
yield 'Multi flows' =>
[[ 'state_enter.order.state.in_progress' =>
[ [ 'id' => Uuid::
randomHex(),
'name' => 'Order enters status in progress',
'payload' =>
new Flow(Uuid::
randomHex()),
],
[