/**
* @param class-string<object> $serviceClassName
*/
private function getServiceLink(string
$serviceClassName): string
{ $reflection =
new \
ReflectionClass($serviceClassName);
$group =
$this->serviceReferenceGenerator->
getGroupForService($reflection);
return sprintf('./%s#%s', ServiceReferenceGenerator::GROUPS
[$group],
$reflection->
getShortName());
} /**
* @param class-string<Hook> $hook
*
* @return array<string, mixed>
*/
private function getDataForHook(string
$hook): array
{ /** @var \ReflectionClass<Hook> $reflection */
$reflection =
new \
ReflectionClass($hook);