Skip to content

Commit f8b2132

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

File tree

4 files changed

+277
-57
lines changed

4 files changed

+277
-57
lines changed

docs/book/v1/component/handler.md

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

7373
- `src/ExistingModule/src/Collection/BookCollection.php`: describes a resource-specific collection
74-
- `src/ExistingModule/src/Handler/GetBookCollectionHandler.php`: handles the resource collection representation
74+
- `src/ExistingModule/src/Handler/Book/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/ExistingModule/src/Handler/GetBookResourceHandler.php`: handles the resource representation
88+
- `src/ExistingModule/src/Handler/Book/GetBookResourceHandler.php`: handles the resource representation
8989

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

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

102-
- `src/ExistingModule/src/Handler/PostBookResourceHandler.php`: handles the resource creation
102+
- `src/ExistingModule/src/Handler/Book/PostBookResourceHandler.php`: handles the resource creation
103103
- `src/ExistingModule/src/InputFilter/CreateBookInputFilter.php`: request payload validators
104104

105105
The matching InputFilter and ServiceInterface will be automatically injected into the Handler.
@@ -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/ExistingModule/src/Handler/DeleteBookResourceHandler.php`: handles the resource deletion
117+
- `src/ExistingModule/src/Handler/Book/DeleteBookResourceHandler.php`: handles the resource deletion
118118

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

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

131-
- `src/ExistingModule/src/Handler/PatchBookResourceHandler.php`: handles the resource update
131+
- `src/ExistingModule/src/Handler/Book/PatchBookResourceHandler.php`: handles the resource update
132132
- `src/ExistingModule/src/InputFilter/EditBookInputFilter.php`: request payload validators
133133

134134
The matching InputFilter and ServiceInterface will be automatically injected into the Handler.
@@ -143,7 +143,7 @@ The prompt asks you whether you want to replace resources:
143143
144144
On confirmation, the process will create the following files:
145145

146-
- `src/ExistingModule/src/Handler/PutBookResourceHandler.php`: handles the resource replacement
146+
- `src/ExistingModule/src/Handler/Book/PutBookResourceHandler.php`: handles the resource replacement
147147
- `src/ExistingModule/src/InputFilter/ReplaceBookInputFilter.php`: request payload validators
148148

149149
The matching InputFilter and ServiceInterface will be automatically injected into the Handler.
@@ -160,7 +160,7 @@ The prompt asks you whether you want to list resources:
160160
161161
On confirmation, the process will create the following files:
162162

163-
- `src/ExistingModule/src/Handler/GetBookListHandler.php`: renders the resource list page
163+
- `src/ExistingModule/src/Handler/Book/GetBookListHandler.php`: renders the resource list page
164164
- `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.
@@ -175,7 +175,7 @@ The prompt asks you whether you want to view resources:
175175
176176
On confirmation, the process will create the following files:
177177

178-
- `src/ExistingModule/src/Handler/GetBookViewHandler.php`: renders the resource page
178+
- `src/ExistingModule/src/Handler/Book/GetBookViewHandler.php`: renders the resource page
179179
- `src/ExistingModule/templates/existing-module/book-view.html.twig`: renders the resource
180180

181181
The matching ServiceInterface will be automatically injected into the Handler.
@@ -190,8 +190,8 @@ The prompt asks you whether you want to create resources:
190190
191191
On confirmation, the process will create the following files:
192192

193-
- `src/ExistingModule/src/Handler/GetBookCreateFormHandler.php`: renders the resource creation form page
194-
- `src/ExistingModule/src/Handler/PostBookCreateHandler.php`: handles the resource creation
193+
- `src/ExistingModule/src/Handler/Book/GetBookCreateFormHandler.php`: renders the resource creation form page
194+
- `src/ExistingModule/src/Handler/Book/PostBookCreateHandler.php`: handles the resource creation
195195
- `src/ExistingModule/src/Form/CreateBookForm.php`: form fields
196196
- `src/ExistingModule/src/InputFilter/CreateBookInputFilter.php`: form field validators
197197
- `src/ExistingModule/templates/existing-module/book-view.html.twig`: renders the resource creation form
@@ -208,8 +208,8 @@ The prompt asks you whether you want to delete resources:
208208
209209
On confirmation, the process will create the following files:
210210

211-
- `src/ExistingModule/src/Handler/GetBookDeleteFormHandler.php`: renders the resource deletion form page
212-
- `src/ExistingModule/src/Handler/PostBookDeleteHandler.php`: handles the resource deletion
211+
- `src/ExistingModule/src/Handler/Book/GetBookDeleteFormHandler.php`: renders the resource deletion form page
212+
- `src/ExistingModule/src/Handler/Book/PostBookDeleteHandler.php`: handles the resource deletion
213213
- `src/ExistingModule/src/Form/DeleteBookForm.php`: form fields
214214
- `src/ExistingModule/src/InputFilter/DeleteBookInputFilter.php`: form field validators
215215
- `src/ExistingModule/src/InputFilter/Input/ConfirmDeleteBookInput.php`: checkbox input for deletion confirmation
@@ -227,8 +227,8 @@ The prompt asks you whether you want to edit resources:
227227
228228
On confirmation, the process will create the following files:
229229

230-
- `src/ExistingModule/src/Handler/GetBookEditFormHandler.php`: renders the resource edit form page
231-
- `src/ExistingModule/src/Handler/PostBookEditHandler.php`: handles the resource update
230+
- `src/ExistingModule/src/Handler/Book/GetBookEditFormHandler.php`: renders the resource edit form page
231+
- `src/ExistingModule/src/Handler/Book/PostBookEditHandler.php`: handles the resource update
232232
- `src/ExistingModule/src/Form/EditBookForm.php`: form fields
233233
- `src/ExistingModule/src/InputFilter/EditBookInputFilter.php`: form field validators
234234
- `src/ExistingModule/templates/existing-module/book-edit-form.html.twig`: renders the resource creation form

docs/book/v1/component/module.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ The prompt asks you whether you want to list resources:
122122
On confirmation, the process will create the following files:
123123

124124
- `src/<ModuleName>/src/Collection/<ModuleName>Collection.php`: describes a resource-specific collection
125-
- `src/<ModuleName>/src/Handler/Get<ModuleName>CollectionHandler.php`: handles the resource collection representation
125+
- `src/<ModuleName>/src/Handler/<ModuleName>/Get<ModuleName>CollectionHandler.php`: handles the resource collection representation
126126

127127
The matching Collection and ServiceInterface will be automatically injected into the Handler.
128128

@@ -136,7 +136,7 @@ The prompt asks you whether you want to view resources:
136136
137137
On confirmation, the process will create the following file:
138138

139-
- `src/<ModuleName>/src/Handler/Get<ModuleName>ResourceHandler.php`: handles the resource representation
139+
- `src/<ModuleName>/src/Handler/<ModuleName>/Get<ModuleName>ResourceHandler.php`: handles the resource representation
140140

141141
The matching ServiceInterface will be automatically injected into the Handler.
142142

@@ -150,7 +150,7 @@ The prompt asks you whether you want to create resources:
150150
151151
On confirmation, the process will create the following files:
152152

153-
- `src/<ModuleName>/src/Handler/Post<ModuleName>ResourceHandler.php`: handles the resource creation
153+
- `src/<ModuleName>/src/Handler/<ModuleName>/Post<ModuleName>ResourceHandler.php`: handles the resource creation
154154
- `src/<ModuleName>/src/InputFilter/Create<ModuleName>InputFilter.php`: request payload validators
155155

156156
The matching InputFilter and ServiceInterface will be automatically injected into the Handler.
@@ -165,7 +165,7 @@ The prompt asks you whether you want to delete resources:
165165
166166
On confirmation, the process will create the following files:
167167

168-
- `src/<ModuleName>/src/Handler/Delete<ModuleName>ResourceHandler.php`: handles the resource deletion
168+
- `src/<ModuleName>/src/Handler/<ModuleName>/Delete<ModuleName>ResourceHandler.php`: handles the resource deletion
169169

170170
The matching ServiceInterface will be automatically injected into the Handler.
171171

@@ -179,7 +179,7 @@ The prompt asks you whether you want to edit resources:
179179
180180
On confirmation, the process will create the following files:
181181

182-
- `src/<ModuleName>/src/Handler/Patch<ModuleName>ResourceHandler.php`: handles the resource update
182+
- `src/<ModuleName>/src/Handler/<ModuleName>/Patch<ModuleName>ResourceHandler.php`: handles the resource update
183183
- `src/<ModuleName>/src/InputFilter/Edit<ModuleName>InputFilter.php`: request payload validators
184184

185185
The matching InputFilter and ServiceInterface will be automatically injected into the Handler.
@@ -194,7 +194,7 @@ The prompt asks you whether you want to replace resources:
194194
195195
On confirmation, the process will create the following files:
196196

197-
- `src/<ModuleName>/src/Handler/Put<ModuleName>ResourceHandler.php`: handles the resource replacement
197+
- `src/<ModuleName>/src/Handler/<ModuleName>/Put<ModuleName>ResourceHandler.php`: handles the resource replacement
198198
- `src/<ModuleName>/src/InputFilter/Replace<ModuleName>InputFilter.php`: request payload validators
199199

200200
The matching InputFilter and ServiceInterface will be automatically injected into the Handler.
@@ -211,7 +211,7 @@ The prompt asks you whether you want to list resources:
211211
212212
On confirmation, the process will create the following files:
213213

214-
- `src/<ModuleName>/src/Handler/Get<ModuleName>ListHandler.php`: renders the resource list page
214+
- `src/<ModuleName>/src/Handler/<ModuleName>/Get<ModuleName>ListHandler.php`: renders the resource list page
215215
- `src/<ModuleName>/templates/<ModuleName>/<ModuleName>-list.html.twig`: renders the resource list
216216

217217
The matching ServiceInterface will be automatically injected into the Handler.
@@ -226,7 +226,7 @@ The prompt asks you whether you want to view resources:
226226
227227
On confirmation, the process will create the following files:
228228

229-
- `src/<ModuleName>/src/Handler/Get<ModuleName>ViewHandler.php`: renders the resource page
229+
- `src/<ModuleName>/src/Handler/<ModuleName>/Get<ModuleName>ViewHandler.php`: renders the resource page
230230
- `src/<ModuleName>/templates/<ModuleName>/<ModuleName>-view.html.twig`: renders the resource
231231

232232
The matching ServiceInterface will be automatically injected into the Handler.
@@ -241,8 +241,8 @@ The prompt asks you whether you want to create resources:
241241
242242
On confirmation, the process will create the following files:
243243

244-
- `src/<ModuleName>/src/Handler/Get<ModuleName>CreateFormHandler.php`: renders the resource creation form page
245-
- `src/<ModuleName>/src/Handler/Post<ModuleName>CreateHandler.php`: handles the resource creation
244+
- `src/<ModuleName>/src/Handler/<ModuleName>/Get<ModuleName>CreateFormHandler.php`: renders the resource creation form page
245+
- `src/<ModuleName>/src/Handler/<ModuleName>/Post<ModuleName>CreateHandler.php`: handles the resource creation
246246
- `src/<ModuleName>/src/Form/Create<ModuleName>Form.php`: form fields
247247
- `src/<ModuleName>/src/InputFilter/Create<ModuleName>InputFilter.php`: form field validators
248248
- `src/<ModuleName>/templates/<ModuleName>/<ModuleName>-view.html.twig`: renders the resource creation form
@@ -259,8 +259,8 @@ The prompt asks you whether you want to delete resources:
259259
260260
On confirmation, the process will create the following files:
261261

262-
- `src/<ModuleName>/src/Handler/Get<ModuleName>DeleteFormHandler.php`: renders the resource deletion form page
263-
- `src/<ModuleName>/src/Handler/Post<ModuleName>DeleteHandler.php`: handles the resource deletion
262+
- `src/<ModuleName>/src/Handler/<ModuleName>/Get<ModuleName>DeleteFormHandler.php`: renders the resource deletion form page
263+
- `src/<ModuleName>/src/Handler/<ModuleName>/Post<ModuleName>DeleteHandler.php`: handles the resource deletion
264264
- `src/<ModuleName>/src/Form/Delete<ModuleName>Form.php`: form fields
265265
- `src/<ModuleName>/src/InputFilter/Delete<ModuleName>InputFilter.php`: form field validators
266266
- `src/<ModuleName>/src/InputFilter/Input/ConfirmDelete<ModuleName>Input.php`: checkbox input for deletion confirmation
@@ -278,8 +278,8 @@ The prompt asks you whether you want to edit resources:
278278
279279
On confirmation, the process will create the following files:
280280

281-
- `src/<ModuleName>/src/Handler/Get<ModuleName>EditFormHandler.php`: renders the resource edit form page
282-
- `src/<ModuleName>/src/Handler/Post<ModuleName>EditHandler.php`: handles the resource update
281+
- `src/<ModuleName>/src/Handler/<ModuleName>/Get<ModuleName>EditFormHandler.php`: renders the resource edit form page
282+
- `src/<ModuleName>/src/Handler/<ModuleName>/Post<ModuleName>EditHandler.php`: handles the resource update
283283
- `src/<ModuleName>/src/Form/Edit<ModuleName>Form.php`: form fields
284284
- `src/<ModuleName>/src/InputFilter/Edit<ModuleName>InputFilter.php`: form field validators
285285
- `src/<ModuleName>/templates/<ModuleName>/<ModuleName>-edit-form.html.twig`: renders the resource creation form

0 commit comments

Comments
 (0)