if ($choice ===
$choiceSelect) { $id =
$io->
askQuestion( new ChoiceQuestion( sprintf( 'Which plugin do you want to %s?',
$lifecycleMethod ),
$pluginCollection->
map(fn (PluginEntity
$plugin) =>
$plugin->
getName()) ) );
return new PluginCollection([$pluginCollection->
get($id)]);
} return $pluginCollection;
} /**
* @return array<string>
*/
private function formatPluginList(PluginCollection
$plugins): array
{ $pluginList =
[];