// we don't want to dispatch those to the webhooks
if ($event instanceof StorableFlow
) { return [];
} if ($event instanceof Hookable
) { return [$event];
} if ($event instanceof FlowEventAware
) { return [ HookableBusinessEvent::
fromBusinessEvent($event,
$this->eventEncoder
),
];
} if ($event instanceof EntityWrittenContainerEvent
) { return $this->
wrapEntityWrittenEvent($event);
} return [];
} /**
* @return Hookable[]
*/