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