1717use Symfony \Component \Finder \Finder ;
1818use Symfony \Component \Uid \Ulid ;
1919
20- class ResourceLoader
20+ readonly class ResourceLoader
2121{
2222 public function __construct (
23- private readonly EntityManagerInterface $ entityManager ,
23+ private EntityManagerInterface $ entityManager ,
2424 ) {}
2525
2626 public function getResourceJsonInDirectory (string $ path , string $ resourceType , ResourceTypeEnum $ type ): array
@@ -45,7 +45,7 @@ public function getResourceJsonInDirectory(string $path, string $resourceType, R
4545 return [];
4646 }
4747
48- public function getTemplateData (iterable $ finder , ResourceTypeEnum $ type ): array
48+ private function getTemplateData (iterable $ finder , ResourceTypeEnum $ type ): array
4949 {
5050 $ templates = [];
5151
@@ -82,7 +82,7 @@ public function getTemplateData(iterable $finder, ResourceTypeEnum $type): array
8282 $ content ->options ,
8383 $ template ,
8484 null !== $ template ,
85- $ type-> value ,
85+ $ type ,
8686 );
8787 }
8888
@@ -122,7 +122,7 @@ private function getScreenLayoutData(iterable $finder, ResourceTypeEnum $type):
122122 $ screenLayouts [] = new ScreenLayoutData (
123123 $ content ->id ,
124124 $ content ->title ,
125- $ type-> value ,
125+ $ type ,
126126 $ content ->grid ->rows ,
127127 $ content ->grid ->columns ,
128128 $ screenLayout ,
@@ -189,7 +189,7 @@ private function getScreenLayoutJsonSchema(): object
189189 "$schema": "https://json-schema.org/draft/2020-12/schema",
190190 "$id": "https://os2display.dk/config-schema.json",
191191 "title": "Config file schema",
192- "description": "Schema for defining config files for templates ",
192+ "description": "Schema for defining config files for screen layouts ",
193193 "type": "object",
194194 "properties": {
195195 "id": {
0 commit comments