$interfaces =
class_implements($instance);
$aware =
[];
foreach ($interfaces as $interface) { if (is_subclass_of($interface, FlowEventAware::
class) &&
$interface !== FlowEventAware::
class) { $aware[] =
lcfirst((new \
ReflectionClass($interface))->
getShortName());
$aware[] =
$interface;
} } return new BusinessEventDefinition( $name,
$class,
$instance->
getAvailableData()->
toArray(),
$aware );
} private function fetchAppEvents(BusinessEventCollectorResponse
$result): BusinessEventCollectorResponse
{ $appEvents =
$this->connection->
fetchAllAssociative('SELECT `app_flow_event`.`name`, `app_flow_event`.`aware` FROM `app_flow_event` JOIN `app` ON `app_flow_event`.`app_id` = `app`.`id` WHERE `app`.`active` = 1'
);