File tree Expand file tree Collapse file tree 1 file changed +75
-0
lines changed
system/Commands/Utilities Expand file tree Collapse file tree 1 file changed +75
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /**
4
+ * This file is part of CodeIgniter 4 framework.
5
+ *
6
+ * (c) CodeIgniter Foundation <[email protected] >
7
+ *
8
+ * For the full copyright and license information, please view
9
+ * the LICENSE file that was distributed with this source code.
10
+ */
11
+
12
+ namespace CodeIgniter \Commands \Utilities ;
13
+
14
+ use CodeIgniter \CLI \BaseCommand ;
15
+ use CodeIgniter \Security \CheckPhpIni ;
16
+
17
+ /**
18
+ * Check php.ini values.
19
+ */
20
+ final class PhpIniCheck extends BaseCommand
21
+ {
22
+ /**
23
+ * The group the command is lumped under
24
+ * when listing commands.
25
+ *
26
+ * @var string
27
+ */
28
+ protected $ group = 'CodeIgniter ' ;
29
+
30
+ /**
31
+ * The Command's name
32
+ *
33
+ * @var string
34
+ */
35
+ protected $ name = 'phpini:check ' ;
36
+
37
+ /**
38
+ * The Command's short description
39
+ *
40
+ * @var string
41
+ */
42
+ protected $ description = 'Check your php.ini values. ' ;
43
+
44
+ /**
45
+ * The Command's usage
46
+ *
47
+ * @var string
48
+ */
49
+ protected $ usage = 'phpini:check ' ;
50
+
51
+ /**
52
+ * The Command's arguments
53
+ *
54
+ * @var array<string, string>
55
+ */
56
+ protected $ arguments = [
57
+ ];
58
+
59
+ /**
60
+ * The Command's options
61
+ *
62
+ * @var array<string, string>
63
+ */
64
+ protected $ options = [];
65
+
66
+ /**
67
+ * {@inheritDoc}
68
+ */
69
+ public function run (array $ params )
70
+ {
71
+ CheckPhpIni::run ();
72
+
73
+ return EXIT_SUCCESS ;
74
+ }
75
+ }
You can’t perform that action at this time.
0 commit comments