@@ -183,6 +183,9 @@ protected function generateActionClassCode(): string
183
183
"use {$ routeAnnotationClass }; " ,
184
184
'use ' .$ this ->fqnActionResponseClass .'; ' ,
185
185
'' ,
186
+ '/** ' ,
187
+ ' * @Route(" ' .$ this ->route .'") ' ,
188
+ ' */ ' ,
186
189
'class ' .Classes::short ($ this ->fqnActionClass ).' extends ' .Classes::short ($ documentedFormActionClass ),
187
190
'{ ' ,
188
191
TAB ."protected static \$inputStatus = self::STATE_INPUT_NOT_IMPLEMENTED; " ,
@@ -223,6 +226,9 @@ protected function generateOldActionClassCode(): string
223
226
"use {$ routeAnnotationClass }; " ,
224
227
'use ' .$ this ->fqnActionResponseClass .'; ' ,
225
228
'' ,
229
+ '/** ' ,
230
+ ' * @Route(" ' .$ this ->route .'") ' ,
231
+ ' */ ' ,
226
232
'class ' .Classes::short ($ this ->fqnActionClass ).' extends ' .Classes::short ($ documentedFormActionClass ),
227
233
'{ ' ,
228
234
TAB ."protected static \$inputStatus = self::STATE_INPUT_NOT_IMPLEMENTED; " ,
@@ -231,7 +237,6 @@ protected function generateOldActionClassCode(): string
231
237
TAB .'protected static $allowEmptyForm = ' .($ this ->allowEmptyForm ? 'true ' : 'false ' ).'; ' ,
232
238
TAB .'' ,
233
239
TAB .'/** ' ,
234
- TAB .' * @ ' .Classes::short ($ routeAnnotationClass ).'(" ' .$ this ->route .'", methods={"POST"}) ' ,
235
240
TAB .' * @return \\' .JsonResponse::class,
236
241
TAB .' */ ' ,
237
242
TAB .'public function __invoke(): ' .Classes::short ($ responseClass ),
0 commit comments