return $io->
choice('Select one of the following services to display its information',
$matchingServices);
} private function findProperTagName(InputInterface
$input, SymfonyStyle
$io, ContainerBuilder
$container, string
$tagName): string
{ if (\
in_array($tagName,
$container->
findTags(), true
) || !
$input->
isInteractive()) { return $tagName;
} $matchingTags =
$this->
findTagsContaining($container,
$tagName);
if (!
$matchingTags) { throw new InvalidArgumentException(sprintf('No tags found that match "%s".',
$tagName));
} if (1 === \
count($matchingTags)) { return $matchingTags[0
];
} return $io->
choice('Select one of the following tags to display its information',
$matchingTags);
}