Skip to content

Commit bb8f27c

Browse files
committed
iterate
1 parent 522b813 commit bb8f27c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ux.symfony.com/src/Controller/SitemapController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ private function getSitemapUrls(): iterable
7070
yield $this->generateAbsoluteUrl('app_toolkit_kit', ['kitId' => $kitId]);
7171

7272
foreach ($this->toolkitService->getDocumentableComponents($kit) as $component) {
73-
yield $this->generateAbsoluteUrl('app_toolkit_component', ['kitId' => $kitId, 'componentName' => $component->name]);
73+
yield $this->generateAbsoluteUrl('app_toolkit_component', ['kitId' => $kitId, 'componentName' => $component->manifest->name]);
7474
}
7575
}
7676
}

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
use Symfony\Component\Filesystem\Path;
1818
use Symfony\Component\HttpFoundation\UriSigner;
1919
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
20-
use Symfony\UX\Toolkit\Asset\Component;
2120
use Symfony\UX\Toolkit\Installer\PoolResolver;
2221
use Symfony\UX\Toolkit\Kit\Kit;
2322
use Symfony\UX\Toolkit\Recipe\Recipe;
@@ -57,7 +56,7 @@ public function getKits(): array
5756
}
5857

5958
/**
60-
* @return Component[]
59+
* @return Recipe[]
6160
*/
6261
public function getDocumentableComponents(Kit $kit): array
6362
{

0 commit comments

Comments
 (0)