Skip to content

Commit 74130fb

Browse files
committed
WIP
Signed-off-by: alexmerlin <alex.merlin.1985@gmail.com>
1 parent 1a836fa commit 74130fb

1 file changed

Lines changed: 30 additions & 30 deletions

File tree

docs/book/v1/component/handler.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ The prompt asks you whether you want to list resources:
7070
7171
On confirmation, the process will create the following files:
7272

73-
- `src/<ModuleName>/src/Collection/<ModuleName>Collection.php`: describes a resource-specific collection
74-
- `src/<ModuleName>/src/Handler/Get<ModuleName>CollectionHandler.php`: handles the resource collection representation
73+
- `src/ExistingModule/src/Collection/BookCollection.php`: describes a resource-specific collection
74+
- `src/ExistingModule/src/Handler/GetBookCollectionHandler.php`: handles the resource collection representation
7575

7676
The matching Collection and ServiceInterface will be automatically injected into the Handler.
7777

@@ -85,7 +85,7 @@ The prompt asks you whether you want to view resources:
8585
8686
On confirmation, the process will create the following file:
8787

88-
- `src/<ModuleName>/src/Handler/Get<ModuleName>ResourceHandler.php`: handles the resource representation
88+
- `src/ExistingModule/src/Handler/GetBookResourceHandler.php`: handles the resource representation
8989

9090
The matching ServiceInterface will be automatically injected into the Handler.
9191

@@ -99,8 +99,8 @@ The prompt asks you whether you want to create resources:
9999
100100
On confirmation, the process will create the following files:
101101

102-
- `src/<ModuleName>/src/Handler/Post<ModuleName>ResourceHandler.php`: handles the resource creation
103-
- `src/<ModuleName>/src/InputFilter/Create<ModuleName>InputFilter.php`: request payload validators
102+
- `src/ExistingModule/src/Handler/PostBookResourceHandler.php`: handles the resource creation
103+
- `src/ExistingModule/src/InputFilter/CreateBookInputFilter.php`: request payload validators
104104

105105
The matching InputFilter and ServiceInterface will be automatically injected into the Handler.
106106

@@ -114,7 +114,7 @@ The prompt asks you whether you want to delete resources:
114114
115115
On confirmation, the process will create the following files:
116116

117-
- `src/<ModuleName>/src/Handler/Delete<ModuleName>ResourceHandler.php`: handles the resource deletion
117+
- `src/ExistingModule/src/Handler/DeleteBookResourceHandler.php`: handles the resource deletion
118118

119119
The matching ServiceInterface will be automatically injected into the Handler.
120120

@@ -128,8 +128,8 @@ The prompt asks you whether you want to edit resources:
128128
129129
On confirmation, the process will create the following files:
130130

131-
- `src/<ModuleName>/src/Handler/Patch<ModuleName>ResourceHandler.php`: handles the resource update
132-
- `src/<ModuleName>/src/InputFilter/Edit<ModuleName>InputFilter.php`: request payload validators
131+
- `src/ExistingModule/src/Handler/PatchBookResourceHandler.php`: handles the resource update
132+
- `src/ExistingModule/src/InputFilter/EditBookInputFilter.php`: request payload validators
133133

134134
The matching InputFilter and ServiceInterface will be automatically injected into the Handler.
135135

@@ -143,8 +143,8 @@ The prompt asks you whether you want to replace resources:
143143
144144
On confirmation, the process will create the following files:
145145

146-
- `src/<ModuleName>/src/Handler/Put<ModuleName>ResourceHandler.php`: handles the resource replacement
147-
- `src/<ModuleName>/src/InputFilter/Replace<ModuleName>InputFilter.php`: request payload validators
146+
- `src/ExistingModule/src/Handler/PutBookResourceHandler.php`: handles the resource replacement
147+
- `src/ExistingModule/src/InputFilter/ReplaceBookInputFilter.php`: request payload validators
148148

149149
The matching InputFilter and ServiceInterface will be automatically injected into the Handler.
150150

@@ -160,8 +160,8 @@ The prompt asks you whether you want to list resources:
160160
161161
On confirmation, the process will create the following files:
162162

163-
- `src/<ModuleName>/src/Handler/Get<ModuleName>ListHandler.php`: renders the resource list page
164-
- `src/<ModuleName>/templates/<ModuleName>/<ModuleName>-list.html.twig`: renders the resource list
163+
- `src/ExistingModule/src/Handler/GetBookListHandler.php`: renders the resource list page
164+
- `src/ExistingModule/templates/existing-module/book-list.html.twig`: renders the resource list
165165

166166
The matching ServiceInterface will be automatically injected into the Handler.
167167

@@ -175,8 +175,8 @@ The prompt asks you whether you want to view resources:
175175
176176
On confirmation, the process will create the following files:
177177

178-
- `src/<ModuleName>/src/Handler/Get<ModuleName>ViewHandler.php`: renders the resource page
179-
- `src/<ModuleName>/templates/<ModuleName>/<ModuleName>-view.html.twig`: renders the resource
178+
- `src/ExistingModule/src/Handler/GetBookViewHandler.php`: renders the resource page
179+
- `src/ExistingModule/templates/existing-module/book-view.html.twig`: renders the resource
180180

181181
The matching ServiceInterface will be automatically injected into the Handler.
182182

@@ -190,11 +190,11 @@ The prompt asks you whether you want to create resources:
190190
191191
On confirmation, the process will create the following files:
192192

193-
- `src/<ModuleName>/src/Handler/Get<ModuleName>CreateFormHandler.php`: renders the resource creation form page
194-
- `src/<ModuleName>/src/Handler/Post<ModuleName>CreateHandler.php`: handles the resource creation
195-
- `src/<ModuleName>/src/Form/Create<ModuleName>Form.php`: form fields
196-
- `src/<ModuleName>/src/InputFilter/Create<ModuleName>InputFilter.php`: form field validators
197-
- `src/<ModuleName>/templates/<ModuleName>/<ModuleName>-view.html.twig`: renders the resource creation form
193+
- `src/ExistingModule/src/Handler/GetBookCreateFormHandler.php`: renders the resource creation form page
194+
- `src/ExistingModule/src/Handler/PostBookCreateHandler.php`: handles the resource creation
195+
- `src/ExistingModule/src/Form/CreateBookForm.php`: form fields
196+
- `src/ExistingModule/src/InputFilter/CreateBookInputFilter.php`: form field validators
197+
- `src/ExistingModule/templates/existing-module/book-view.html.twig`: renders the resource creation form
198198

199199
The matching Form and ServiceInterface will be automatically injected into the Handler.
200200

@@ -208,12 +208,12 @@ The prompt asks you whether you want to delete resources:
208208
209209
On confirmation, the process will create the following files:
210210

211-
- `src/<ModuleName>/src/Handler/Get<ModuleName>DeleteFormHandler.php`: renders the resource deletion form page
212-
- `src/<ModuleName>/src/Handler/Post<ModuleName>DeleteHandler.php`: handles the resource deletion
213-
- `src/<ModuleName>/src/Form/Delete<ModuleName>Form.php`: form fields
214-
- `src/<ModuleName>/src/InputFilter/Delete<ModuleName>InputFilter.php`: form field validators
215-
- `src/<ModuleName>/src/InputFilter/Input/ConfirmDelete<ModuleName>Input.php`: checkbox input for deletion confirmation
216-
- `src/<ModuleName>/templates/<ModuleName>/<ModuleName>-delete-form.html.twig`: renders the resource deletion form
211+
- `src/ExistingModule/src/Handler/GetBookDeleteFormHandler.php`: renders the resource deletion form page
212+
- `src/ExistingModule/src/Handler/PostBookDeleteHandler.php`: handles the resource deletion
213+
- `src/ExistingModule/src/Form/DeleteBookForm.php`: form fields
214+
- `src/ExistingModule/src/InputFilter/DeleteBookInputFilter.php`: form field validators
215+
- `src/ExistingModule/src/InputFilter/Input/ConfirmDeleteBookInput.php`: checkbox input for deletion confirmation
216+
- `src/ExistingModule/templates/existing-module/book-delete-form.html.twig`: renders the resource deletion form
217217

218218
The matching ServiceInterface will be automatically injected into the Handler.
219219

@@ -227,11 +227,11 @@ The prompt asks you whether you want to edit resources:
227227
228228
On confirmation, the process will create the following files:
229229

230-
- `src/<ModuleName>/src/Handler/Get<ModuleName>EditFormHandler.php`: renders the resource edit form page
231-
- `src/<ModuleName>/src/Handler/Post<ModuleName>EditHandler.php`: handles the resource update
232-
- `src/<ModuleName>/src/Form/Edit<ModuleName>Form.php`: form fields
233-
- `src/<ModuleName>/src/InputFilter/Edit<ModuleName>InputFilter.php`: form field validators
234-
- `src/<ModuleName>/templates/<ModuleName>/<ModuleName>-edit-form.html.twig`: renders the resource creation form
230+
- `src/ExistingModule/src/Handler/GetBookEditFormHandler.php`: renders the resource edit form page
231+
- `src/ExistingModule/src/Handler/PostBookEditHandler.php`: handles the resource update
232+
- `src/ExistingModule/src/Form/EditBookForm.php`: form fields
233+
- `src/ExistingModule/src/InputFilter/EditBookInputFilter.php`: form field validators
234+
- `src/ExistingModule/templates/existing-module/book-edit-form.html.twig`: renders the resource creation form
235235

236236
The matching InputFilter and ServiceInterface will be automatically injected into the Handler.
237237

0 commit comments

Comments
 (0)