You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -113,7 +110,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
113
110
$kitName = $io->choice(null === $componentName ? 'Which kit do you want to use?' : \sprintf('The component "%s" exists in multiple kits. Which one do you want to use?', $componentName), array_map(fn (Kit$kit) => $kit->name, $availableKits));
114
111
115
112
foreach ($availableKitsas$availableKit) {
116
-
if ($availableKit->name === $kitName) {
113
+
if ($availableKit->manifest->name === $kitName) {
117
114
$kit = $availableKit;
118
115
break;
119
116
}
@@ -123,7 +120,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
123
120
} else {
124
121
$io->error(null === $componentName
125
122
? 'It seems that no local kits are available and it should not happens. Please open an issue on https://github.com/symfony/ux to report this.'
126
-
: \sprintf("The component \"%s\" does not exist in any local kits.\n\nYou can try to run one of the following commands to interactively install components:\n%s\n\nOr you can try one of the community kits https://github.com/search?q=topic:ux-toolkit&type=repositories", $componentName, implode("\n", array_map(fn (string$availableKitName) => \sprintf('$ bin/console %s --kit %s', $this->getName(), $availableKitName), $availableKitNames)))
123
+
: \sprintf("The component \"%s\" does not exist in any official kits.\n\nYou can try to run one of the following commands to interactively install components:\n%s\n\nOr you can try one of the community kits https://github.com/search?q=topic:ux-toolkit&type=repositories", $componentName, implode("\n", array_map(fn (string$availableKitName) => \sprintf('$ bin/console %s --kit %s', $this->getName(), $availableKitName), $availableKitNames)))
127
124
);
128
125
129
126
return Command::FAILURE;
@@ -135,24 +132,24 @@ protected function execute(InputInterface $input, OutputInterface $output): int
135
132
136
133
if (null === $componentName) {
137
134
// Ask for the component name if not provided
138
-
$componentName = $io->choice('Which component do you want to install?', array_map(fn (Component$component) => $component->name, $this->getAvailableComponents($kit)));
$componentName = $io->choice('Which component do you want to install?', array_map(fn (Recipe$recipe) => $recipe->manifest->name, $this->getAvailableRecipes($kit)));
0 commit comments