1818/**
1919 * Generates a complete set of scaffold files.
2020 */
21- class ComponentGenerator extends BaseCommand
21+ class ScaffoldGenerator extends BaseCommand
2222{
2323 use GeneratorTrait;
2424
@@ -34,7 +34,7 @@ class ComponentGenerator extends BaseCommand
3434 *
3535 * @var string
3636 */
37- protected $ name = 'make:component ' ;
37+ protected $ name = 'make:scaffold ' ;
3838
3939 /**
4040 * The Command's Description
@@ -48,7 +48,7 @@ class ComponentGenerator extends BaseCommand
4848 *
4949 * @var string
5050 */
51- protected $ usage = 'make:component <name> [options] ' ;
51+ protected $ usage = 'make:scaffold <name> [options] ' ;
5252
5353 /**
5454 * The Command's Arguments
@@ -65,13 +65,13 @@ class ComponentGenerator extends BaseCommand
6565 * @var array
6666 */
6767 protected $ options = [
68- '--bare ' => 'Add the \' --bare \' option to controller component. ' ,
69- '--restful ' => 'Add the \' --restful \' option to controller component. ' ,
70- '--table ' => 'Add the \' --table \' option to the model component. ' ,
71- '--dbgroup ' => 'Add the \' --dbgroup \' option to model component. ' ,
72- '--return ' => 'Add the \' --return \' option to the model component. ' ,
68+ '--bare ' => 'Add the " --bare" option to controller component. ' ,
69+ '--restful ' => 'Add the " --restful" option to controller component. ' ,
70+ '--table ' => 'Add the " --table" option to the model component. ' ,
71+ '--dbgroup ' => 'Add the " --dbgroup" option to model component. ' ,
72+ '--return ' => 'Add the " --return" option to the model component. ' ,
7373 '--namespace ' => 'Set root namespace. Default: "APP_NAMESPACE". ' ,
74- '--suffix ' => 'Append the component title to the class name (e.g. User => UserComponent) . ' ,
74+ '--suffix ' => 'Append the component title to the class name. ' ,
7575 '--force ' => 'Force overwrite existing file. ' ,
7676 ];
7777
@@ -83,7 +83,7 @@ class ComponentGenerator extends BaseCommand
8383 public function run (array $ params )
8484 {
8585 $ this ->params = $ params ;
86-
86+
8787 $ options = [];
8888
8989 if ($ this ->getOption ('namespace ' ))
0 commit comments