File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change 8
8
use CodeIgniter \CLI \GeneratorTrait ;
9
9
10
10
/**
11
- * Generates a skeleton command file.
11
+ * Generates a custom user model file.
12
12
*/
13
13
class UserModelGenerator extends BaseCommand
14
14
{
15
15
use GeneratorTrait;
16
16
17
17
/**
18
- * The Command's Group
19
- *
20
18
* @var string
21
19
*/
22
20
protected $ group = 'Shield ' ;
23
21
24
22
/**
25
- * The Command's Name
26
- *
27
23
* @var string
28
24
*/
29
25
protected $ name = 'shield:model ' ;
30
26
31
27
/**
32
- * The Command's Description
33
- *
34
28
* @var string
35
29
*/
36
- protected $ description = 'Generates a new UserModel file. ' ;
30
+ protected $ description = 'Generate a new UserModel file. ' ;
37
31
38
32
/**
39
- * The Command's Usage
40
- *
41
33
* @var string
42
34
*/
43
35
protected $ usage = 'shield:model <name> [options] ' ;
@@ -52,8 +44,6 @@ class UserModelGenerator extends BaseCommand
52
44
];
53
45
54
46
/**
55
- * The Command's Options
56
- *
57
47
* @var array<string, string>
58
48
*/
59
49
protected $ options = [
@@ -63,7 +53,7 @@ class UserModelGenerator extends BaseCommand
63
53
];
64
54
65
55
/**
66
- * Actually execute a command.
56
+ * Actually execute the command.
67
57
*/
68
58
public function run (array $ params ): void
69
59
{
@@ -72,6 +62,7 @@ public function run(array $params): void
72
62
$ this ->template = 'usermodel.tpl.php ' ;
73
63
74
64
$ this ->classNameLang = 'CLI.generator.className.model ' ;
65
+
75
66
$ this ->execute ($ params );
76
67
}
77
68
}
You can’t perform that action at this time.
0 commit comments