You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/book/v6/tutorials/create-book-module-via-dot-maker.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,17 +75,17 @@ Next you will be prompted to add the relevant components of a module, accepting
75
75
*`Service` and `service interface` (Y): will generate the `BookService` and the `BookServiceInterface`.
76
76
*`Command`, followed by `middleware`(N): not necessary for the module described in this tutorial.
77
77
*`Handler` (Y): this option is needed, and will further prompt you for the required actions.
78
-
*`Allow listing Books?` (Y): this will generate both the `GetBookResourceHandler.php` class and the `BookCollection.php` it uses.
79
-
*`Allow viewing Books?` (Y): will generate the single resource GET action handler - `GetBookResourceHandler.php`.
80
-
*`Allow creating Books?` (Y): will generate the POST action handler for the `Book` entity - `PostBookResourceHandler.php`, as well as the input filter used for validating the data - `CreateBookInputFilter.php`.
81
-
*`Allow deleting Books?`, `Allow editing Books?` and `Allow replacing Books?` (N): will generate handlers that reflect the DELETE, PATCH and PUT actions respectively, but are not necessary for this tutorial.
78
+
*`Allow listing Books?` (Y): this will generate both the `GetBookResourceHandler.php` class and the `BookCollection.php` it uses.
79
+
*`Allow viewing Books?` (Y): will generate the single resource GET action handler - `GetBookResourceHandler.php`.
80
+
*`Allow creating Books?` (Y): will generate the POST action handler for the `Book` entity - `PostBookResourceHandler.php`, as well as the input filter used for validating the data - `CreateBookInputFilter.php`.
81
+
*`Allow deleting Books?`, `Allow editing Books?` and `Allow replacing Books?` (N): will generate handlers that reflect the DELETE, PATCH and PUT actions respectively, but are not necessary for this tutorial.
82
82
* Following this step, `dot-maker` will automatically generate the `ConfigProvider.php` classes for both the `Api` and `Core` namespaces, as well as the `OpenAPI.php` class which automatically documents the previously generated routes.
83
83
84
84
You will then be instructed to:
85
85
86
86
* Register the `ConfigProvider` classes by adding `Api\Book\ConfigProvider::class` and `Core\Computer\ConfigProvider::class` to `config/config.php`
87
87
* Register the new `Book` namespace by adding `"Api\\Book\\": "src/Book/src/"` and `"Core\\Book\\": "src/Core/src/Book/src/"` to `composer.json` under the `autoload.psr-4` key.
88
-
* After registering the namespace, run the following command to regenerate the autoloaded files, as notified by `dot-maker`:
88
+
* After registering the namespace, run the following command to regenerate the autoloaded files, as notified by `dot-maker`:
0 commit comments