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[]
*/
private function wrapEntityWrittenEvent(EntityWrittenContainerEvent
$event): array
{ $hookables =
[];