1212namespace Symfony \UX \Toolkit \Kit ;
1313
1414use Symfony \Component \Filesystem \Path ;
15- use Symfony \UX \Toolkit \Assert ;
16- use Symfony \UX \Toolkit \Asset \Component ;
17- use Symfony \UX \Toolkit \Asset \StimulusController ;
1815use Symfony \UX \Toolkit \Recipe \Recipe ;
1916use Symfony \UX \Toolkit \Recipe \RecipeType ;
2017
@@ -31,13 +28,14 @@ final class Kit
3128 private array $ recipes = [];
3229
3330 /**
34- * @param non-empty-string $absolutePath
31+ * @param non-empty-string $absolutePath
32+ *
3533 * @throws \InvalidArgumentException
3634 */
3735 public function __construct (
38- public readonly string $ absolutePath ,
36+ public readonly string $ absolutePath ,
3937 public readonly KitManifest $ manifest ,
40- public ?string $ installAsMarkdown = null ,
38+ public ?string $ installAsMarkdown = null ,
4139 ) {
4240 if (!Path::isAbsolute ($ this ->absolutePath )) {
4341 throw new \InvalidArgumentException (\sprintf ('Kit path "%s" is not absolute. ' , $ this ->absolutePath ));
@@ -58,7 +56,7 @@ public function addRecipe(Recipe $recipe): void
5856 /**
5957 * @return array<Recipe>
6058 */
61- public function getRecipes (RecipeType | null $ ofType = null ): array
59+ public function getRecipes (? RecipeType $ ofType = null ): array
6260 {
6361 if (null !== $ ofType ) {
6462 $ this ->recipes = array_filter ($ this ->recipes , fn (Recipe $ recipe ) => $ recipe ->manifest ->type === $ ofType );
0 commit comments