$flowLogEvent =
new FlowLogEvent(FlowLogEvent::NAME,
$event);
$this->dispatcher->
dispatch($flowLogEvent,
$flowLogEvent->
getName());
if (($event instanceof StoppableEventInterface &&
$event->
isPropagationStopped()) ||
$event->
getContext()->
hasState(Context::SKIP_TRIGGER_FLOW
) ) { return $event;
} $storableFlow =
$this->flowFactory->
create($event);
$this->
callFlowExecutor($storableFlow);
return $event;
} /**
* @param callable $listener can not use native type declaration @see https://github.com/symfony/symfony/issues/42283
*/
public function addListener(string
$eventName,
$listener, int
$priority = 0
): void // @phpstan-ignore-line
{ /** @var callable(object): void $listener - Specify generic callback interface callers can provide more specific implementations */
$this->dispatcher->
addListener($eventName,
$listener,
$priority);
}