Skip to content

Commit 522b813

Browse files
committed
iterate
1 parent f9292ee commit 522b813

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

src/Toolkit/src/Registry/LocalRegistry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function getKit(string $kitName): Kit
4545
return $this->kitFactory->createKitFromAbsolutePath($kitDir);
4646
}
4747

48-
throw new \RuntimeException(\sprintf('Unable to find the kit "%s" in the following directories: "%s"', $kitName, implode('", "', $possibleKitDirs)));
48+
throw new \InvalidArgumentException(\sprintf('Kit "%s" does not exist.', $kitName));
4949
}
5050

5151
/**

ux.symfony.com/src/Controller/UxPackage/ToolkitController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function index(
4444
... and a PHP framework for web projects
4545
</twig:Card:Content>
4646
<twig:Card:Footer>
47-
<twig:Button as="a" href="https://symfony.com">
47+
<twig:Button as="a" href="https://symfony.com" target="_blank">
4848
Visit symfony.com
4949
</twig:Button>
5050
</twig:Card:Footer>

ux.symfony.com/src/Service/Toolkit/ToolkitService.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
use Symfony\Component\HttpFoundation\UriSigner;
1919
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
2020
use Symfony\UX\Toolkit\Asset\Component;
21-
use Symfony\UX\Toolkit\Dependency\PhpPackageDependency;
2221
use Symfony\UX\Toolkit\Installer\PoolResolver;
2322
use Symfony\UX\Toolkit\Kit\Kit;
2423
use Symfony\UX\Toolkit\Recipe\Recipe;
@@ -103,7 +102,7 @@ public function renderInstallationSteps(ToolkitKitId $kitId, Recipe $component):
103102

104103
if ($phpPackageDependencies = $pool->getPhpPackageDependencies()) {
105104
$manual .= '<li><strong>If necessary, install the following Composer dependencies:</strong>';
106-
$manual .= CodeBlockRenderer::highlightCode('shell', '$ composer require '.implode(' ', $phpPackageDependencies)), 'margin-bottom: 0');
105+
$manual .= CodeBlockRenderer::highlightCode('shell', '$ composer require '.implode(' ', $phpPackageDependencies), 'margin-bottom: 0');
107106
$manual .= '</li>';
108107
}
109108

ux.symfony.com/templates/toolkit/_code_block_right.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
... and a PHP framework for web projects
1111
</twig:Card:Content>
1212
<twig:Card:Footer>
13-
<twig:Button as="a" href="https://symfony.com">
13+
<twig:Button as="a" href="https://symfony.com" target="_blank">
1414
Visit symfony.com
1515
</twig:Button>
1616
</twig:Card:Footer>

0 commit comments

Comments
 (0)