Skip to content

Commit f5a6e9c

Browse files
committed
Update Command.php
1 parent a9d9d8b commit f5a6e9c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/Ubiquity/devtools/cmd/Command.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,8 @@ public static function crudController() {
329329
}
330330

331331
public static function indexCrudController() {
332-
return new Command("index-crud", "crudControllerName", "Creates a new index-CRUD controller.", [
333-
"index-crud-controller"
332+
return new Command("crud-index", "crudControllerName", "Creates a new index-CRUD controller.", [
333+
"crud-index-controller"
334334
], [
335335
"d" => Parameter::create("datas", "The associated Datas class", [
336336
"true",
@@ -347,11 +347,13 @@ public static function indexCrudController() {
347347
"t" => Parameter::create("templates", "The templates to modify", [
348348
"index",
349349
"form",
350-
"display"
351-
], "index,form,display"),
350+
"display",
351+
"item",
352+
"itemHome"
353+
], "index,form,display,item,itemHome"),
352354
"p" => Parameter::create("path", "The associated route", ['{resource}'])
353355
], [
354-
'Creates an index crud controller' => 'Ubiquity index-crud MainCrud -r=crud/{resource}',
356+
'Creates an index crud controller' => 'Ubiquity crud-index MainCrud -p=crud/{resource}',
355357
'allows customization of index and form templates' => 'Ubiquity index-crud MainCrud -t=index,form'
356358
], 'controllers');
357359
}

0 commit comments

Comments
 (0)