return $this->hotPathTag &&
$definition->
hasTag($this->hotPathTag
) && !
$definition->
isDeprecated();
} private function isSingleUsePrivateNode(ServiceReferenceGraphNode
$node): bool
{ if ($node->
getValue()->
isPublic()) { return false;
} $ids =
[];
foreach ($node->
getInEdges() as $edge) { if (!
$value =
$edge->
getSourceNode()->
getValue()) { continue;
} if ($edge->
isLazy() || !
$value instanceof Definition || !
$value->
isShared()) { return false;
} $ids[$edge->
getSourceNode()->
getId()] = true;
} return 1 === \
count($ids);
}