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