Skip to content

Commit 9b5ab33

Browse files
committed
Fix kickstarter documentation
1 parent 43008e9 commit 9b5ab33

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Documentation/05_Kickstarter.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@
1212

1313
Due to the elaborate nature of PresentationObjects `PackageFactory.AtomicFusion.PresentationObjects` ships with a scaffolding tool that eases the creation of all required code patterns. This tool comes in the form of a set of Neos.Flow commands and enables you to generate code from the command line.
1414

15-
## `component:kickstartvalue` command
15+
## `component:kickstartenum` command
1616

1717
This command generates a new pseudo-enum value object. A pseudo-enum is an attempt to enable enumeration types in PHP, since it doesn't have a native language construct for this (although this might change in the future: https://wiki.php.net/rfc/enum).
1818

1919
Enumerations (or: enums) can be used to represent discrete values. Think of the state of a traffic light which can only take one of the values red, yellow and green (simplified, of course). A good example in HTML would be the `type` attribute of a `<button>` element, which is supposed to only take one of the values `button` or `submit`.
2020

2121
For more information on this pattern, have a look at this excellent article: https://stitcher.io/blog/php-enums
2222

23-
> **Hint:** For a full parameter list use the built-in command documentation of Neos.Flow: `./flow help component:kickstartvalue`
23+
> **Hint:** For a full parameter list use the built-in command documentation of Neos.Flow: `./flow help component:kickstartenum`
2424
2525
### Example
2626

2727
```sh
28-
./flow component:kickstartvalue --package-key=Vendor.Site \
28+
./flow component:kickstartenum --package-key=Vendor.Site \
2929
Headline \
3030
HeadlineLook string \
3131
--values=REGULAR,HERO
@@ -239,7 +239,7 @@ For type names, the following rules apply:
239239
> **Hint:** It is recommended to create all required values and sub-components beforehand, so the kickstarter can find and create proper `use`-statements for them.
240240

241241
```sh
242-
./flow component:kickstart --package-key=Vendor.Site --namespace=Component
242+
./flow component:kickstart --package-key=Vendor.Site --namespace=Component \
243243
Headline \
244244
type:HeadlineType \
245245
look:HeadlineLook \

0 commit comments

Comments
 (0)