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
"t" => Parameter::create("type", "Defines the type of cache to reset.", [
232
247
"all",
233
248
"annotations",
@@ -244,7 +259,11 @@ public static function clearCache() {
244
259
}
245
260
246
261
publicstaticfunctioninitCache() {
247
-
returnnewCommand("init-cache", "", "Init the cache for models, router, rest.", [], [
262
+
returnnewCommand("init-cache", "", "Init the cache for models, router, rest.", [
263
+
'init_cache',
264
+
'init:cache',
265
+
'initCache'
266
+
], [
248
267
"t" => Parameter::create("type", "Defines the type of cache to create.", [
249
268
"all",
250
269
"controllers",
@@ -306,7 +325,10 @@ public static function help() {
306
325
307
326
publicstaticfunctioncrudController() {
308
327
returnnewCommand("crud", "crudControllerName", "Creates a new CRUD controller.", [
309
-
"crud-controller"
328
+
'crud_controller',
329
+
'crud:controller',
330
+
'crud-controller',
331
+
'crudController'
310
332
], [
311
333
"r" => Parameter::create("resource", "The model used", []),
312
334
"d" => Parameter::create("datas", "The associated Datas class", [
@@ -338,7 +360,10 @@ public static function crudController() {
338
360
339
361
publicstaticfunctionindexCrudController() {
340
362
returnnewCommand("crud-index", "crudControllerName", "Creates a new index-CRUD controller.", [
341
-
"crud-index-controller"
363
+
'crud-index-controller',
364
+
'crud_index',
365
+
'crud:index',
366
+
'crudIndex'
342
367
], [
343
368
"d" => Parameter::create("datas", "The associated Datas class", [
344
369
"true",
@@ -359,9 +384,7 @@ public static function indexCrudController() {
359
384
"item",
360
385
"itemHome"
361
386
], "index,form,display,home,itemHome"),
362
-
"p" => Parameter::create("path", "The associated route", [
363
-
'{resource}'
364
-
]),
387
+
"p" => Parameter::create("path", "The associated route", [], '{resource}'),
365
388
'o' => Parameter::create('domain', 'The domain in which to create the controller.', [], '')
366
389
], [
367
390
'Creates an index crud controller' => 'Ubiquity crud-index MainCrud -p=crud/{resource}',
@@ -371,7 +394,10 @@ public static function indexCrudController() {
371
394
372
395
publicstaticfunctionrestController() {
373
396
returnnewCommand("rest", "restControllerName", "Creates a new REST controller.", [
374
-
"rest-controller"
397
+
'rest-controller',
398
+
'rest:controller',
399
+
'rest_controller',
400
+
'restController'
375
401
], [
376
402
"r" => Parameter::create("resource", "The model used", []),
377
403
"p" => Parameter::create("path", "The associated route", [])
@@ -382,7 +408,10 @@ public static function restController() {
382
408
383
409
publicstaticfunctionrestApiController() {
384
410
returnnewCommand("restapi", "restControllerName", "Creates a new REST API controller.", [
385
-
"restapi-controller"
411
+
'restapi-controller',
412
+
'restapi:controller',
413
+
'restapi_controller',
414
+
'restapiController'
386
415
], [
387
416
"p" => Parameter::create("path", "The associated route", [])
388
417
], [
@@ -410,7 +439,10 @@ public static function dao() {
410
439
411
440
publicstaticfunctionauthController() {
412
441
returnnewCommand("auth", "authControllerName", "Creates a new controller for authentification.", [
413
-
"auth-controller"
442
+
'auth-controller',
443
+
'auth_controller',
444
+
'auth:controller',
445
+
'authController'
414
446
], [
415
447
"e" => Parameter::create("extends", "The base class of the controller (must derived from AuthController)", [], "Ubiquity\\controllers\\auth\\AuthController"),
416
448
"t" => Parameter::create("templates", "The templates to modify", [
@@ -431,7 +463,10 @@ public static function authController() {
431
463
432
464
publicstaticfunctionnewAction() {
433
465
returnnewCommand("action", "controller.action", "Creates a new action in a controller.", [
434
-
"new-action"
466
+
'new-action',
467
+
'new_action',
468
+
'new:action',
469
+
'newAction'
435
470
], [
436
471
"p" => Parameter::create("params", "The action parameters (or arguments)", []),
437
472
"r" => Parameter::create("route", "The associated route path", []),
@@ -449,9 +484,24 @@ public static function newAction() {
449
484
], 'controllers');
450
485
}
451
486
487
+
publicstaticfunctionnewDomain() {
488
+
returnnewCommand('domain', 'name', 'Creates a new domain (for a Domain Driven Design approach).', [
489
+
'new-domain',
490
+
'new_domain',
491
+
'new:domain',
492
+
'newDomain'
493
+
], [
494
+
"b" => Parameter::create("base", "The base folder for domains.", [], 'domains')
495
+
], [
496
+
'Creates a new domain users' => 'Ubiquity domain users'
497
+
], 'controllers');
498
+
}
499
+
452
500
publicstaticfunctioninfoModel() {
453
-
returnnewCommand("info:model", "?infoType", "Returns the model meta datas.", [
454
-
"info-model"
501
+
returnnewCommand("info-model", "?infoType", "Returns the model meta datas.", [
502
+
'info_model',
503
+
'info:model',
504
+
'infoModel'
455
505
], [
456
506
"s" => Parameter::create("separate", "If true, returns each info in a separate table", [
457
507
"true",
@@ -466,8 +516,10 @@ public static function infoModel() {
466
516
}
467
517
468
518
publicstaticfunctioninfoModels() {
469
-
returnnewCommand("info:models", "", "Returns the models meta datas.", [
470
-
"info-models"
519
+
returnnewCommand('info-models', '', 'Returns the models meta datas.', [
520
+
'info_models',
521
+
'info:models',
522
+
'infoModels'
471
523
], [
472
524
'd' => Parameter::create('database', 'The database connection to use (offset)', [], 'default'),
473
525
"m" => Parameter::create("models", "The models on which the information is sought.", []),
@@ -482,10 +534,14 @@ public static function infoModels() {
482
534
}
483
535
484
536
publicstaticfunctioninfoValidation() {
485
-
returnnewCommand("info:validation", "?memberName", "Returns the models validation info.", [
486
-
"info-validation",
487
-
"info:validators",
488
-
"info-validators"
537
+
returnnewCommand("info-validation", "?memberName", "Returns the models validation info.", [
538
+
'info_validation',
539
+
'info:validation',
540
+
'infoValidation',
541
+
'info_validators',
542
+
'info-validators',
543
+
'info:validators',
544
+
'infoValidators'
489
545
], [
490
546
"s" => Parameter::create("separate", "If true, returns each info in a separate table", [
491
547
'true',
@@ -501,8 +557,10 @@ public static function infoValidation() {
501
557
502
558
publicstaticfunctionconfigInfo() {
503
559
returnnewCommand("config", "", "Returns the config informations from app/config/config.php.", [
504
-
"info-config",
505
-
"info:config"
560
+
'info_config',
561
+
'info-config',
562
+
'info:config',
563
+
'infoConfig'
506
564
], [
507
565
"f" => Parameter::create("fields", "The fields to display.", [])
508
566
], [
@@ -512,10 +570,11 @@ public static function configInfo() {
512
570
}
513
571
514
572
publicstaticfunctionconfigSet() {
515
-
returnnewCommand("config:set", "", "Modify/add variables and save them in app/config/config.php. Supports only long parameters with --.", [
516
-
"info-set",
517
-
"set:config",
518
-
"set-config"
573
+
returnnewCommand("config-set", "", "Modify/add variables and save them in app/config/config.php. Supports only long parameters with --.", [
574
+
'set_config',
575
+
'set-config',
576
+
'set:config',
577
+
'setConfig'
519
578
], [], [
520
579
'Assigns a new value to siteURL' => 'Ubiquity config:set --siteURL=http://127.0.0.1/quick-start/',
521
580
'Change the database name and port' => 'Ubiquity config:set --database.dbName=blog --database.port=3307'
@@ -524,7 +583,9 @@ public static function configSet() {
524
583
525
584
publicstaticfunctionnewTheme() {
526
585
returnnewCommand("create-theme", "themeName", "Creates a new theme or installs an existing one.", [
527
-
"create:theme"
586
+
'create_theme',
587
+
'create:theme',
588
+
'createTheme'
528
589
], [
529
590
"x" => Parameter::create("extend", "If specified, inherits from an existing theme (bootstrap,semantic or foundation).", [
530
591
'bootstrap',
@@ -539,8 +600,10 @@ public static function newTheme() {
539
600
540
601
publicstaticfunctioninstallTheme() {
541
602
returnnewCommand("theme", "themeName", "Installs an existing theme or creates a new one if the specified theme does not exists.", [
542
-
"install-theme",
543
-
"install:theme"
603
+
'install_theme',
604
+
'install-theme',
605
+
'install:theme',
606
+
'installTheme'
544
607
], [], [
545
608
'Creates a new theme custom' => 'Ubiquity theme custom',
0 commit comments