2323 */
2424class ComponentCommandController extends CommandController
2525{
26- /**
27- * @Flow\Inject
28- * @var PackageResolver
29- */
30- protected $ packageResolver ;
26+ #[Flow \Inject]
27+ protected PackageResolver $ packageResolver ;
3128
32- /**
33- * @Flow\InjectConfiguration(path="componentGeneration.colocate")
34- * @var bool
35- */
36- protected $ colocate ;
29+ #[Flow \InjectConfiguration(path: 'componentGeneration.colocate ' )]
30+ protected bool $ colocate ;
3731
3832 #[Flow \Inject]
3933 protected FactoryRendererInterface $ factoryRenderer ;
4034
4135 /**
4236 * Create a new PresentationObject component and factory
4337 *
44- * This command will create an <b>interface</b>, a <b>value object</b> and a
38+ * This command will create a <b>value object</b> and a
4539 * <b>factory</b> under in the chosen component namespace. It'll also register
4640 * the factory for later use in Fusion.
4741 *
@@ -64,7 +58,6 @@ class ComponentCommandController extends CommandController
6458 * @param string $name The name of the new component
6559 * @param bool $listable If set, an additional list type will be generated
6660 * @param bool $yes If set, no confirmation is going to be required for overwriting files
67- * @return void
6861 * @throws \Neos\Utility\Exception\FilesException
6962 */
7063 public function kickStartCommand (string $ name , bool $ listable = false , bool $ yes = false ): void
@@ -87,22 +80,16 @@ public function kickStartCommand(string $name, bool $listable = false, bool $yes
8780 }
8881
8982 /**
90- * Create a new pseudo-enum value object
91- *
92- * This command will create a <b>value object</b> for a pseudo-enum under in the
93- * chosen component namespace and under the provided name. It'll also create a
94- * co-located <b>exception</b> class that will be used when validation for the
95- * pseudo-enum fails.
83+ * Create a new enum
9684 *
97- * Additionally, a <b>datasource</b> for use in SelectBoxEditors will be created
98- * in the Application namespace of your chosen package .
85+ * This command will create an enum under in the
86+ * chosen component namespace and under the provided name .
9987 *
10088 * @param string $componentName The name of the component the new pseudo-enum belongs to
10189 * @param string $name The name of the new pseudo-enum
10290 * @param string $type The type of the new pseudo-enum (must be one of: "string", "int")
10391 * @param array|string[] $values A comma-separated colon list of names:values for the new pseudo-enum, e.g. a,b,c , a:1,b:2,c:3 or a:1.2,b:2.4,c:3.6
10492 * @param bool $yes If set, no confirmation is going to be required for overwriting files
105- * @return void
10693 */
10794 public function kickStartEnumCommand (string $ componentName , string $ name , string $ type , array $ values = [], bool $ yes = false ): void
10895 {
0 commit comments