|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/* |
|
4
|
|
|
* This file is part of the humbug/Box package. |
|
5
|
|
|
* |
|
6
|
|
|
* Copyright (c) 2017 Théo FIDRY <[email protected]>, |
|
7
|
|
|
* Pádraic Brady <[email protected]> |
|
8
|
|
|
* |
|
9
|
|
|
* For the full copyright and license information, please view the LICENSE |
|
10
|
|
|
* file that was distributed with this source code. |
|
11
|
|
|
*/ |
|
12
|
|
|
|
|
13
|
|
|
namespace KevinGH\Box\RequirementChecker; |
|
14
|
|
|
|
|
15
|
|
|
require 'vendor/symfony/requirements-checker/src/RequirementCollection.php'; |
|
16
|
|
|
require 'vendor/symfony/requirements-checker/src/Requirement.php'; |
|
17
|
|
|
|
|
18
|
|
|
use Symfony\Component\Console\Input\ArgvInput; |
|
19
|
|
|
use Symfony\Requirements\Requirement; |
|
20
|
|
|
use const PHP_EOL; |
|
21
|
|
|
use const STR_PAD_RIGHT; |
|
22
|
|
|
use function array_reduce; |
|
23
|
|
|
use function function_exists; |
|
24
|
|
|
use function getenv; |
|
25
|
|
|
use function posix_isatty; |
|
26
|
|
|
use function str_pad; |
|
27
|
|
|
use function str_repeat; |
|
28
|
|
|
use function strlen; |
|
29
|
|
|
use Symfony\Requirements\RequirementCollection; |
|
30
|
|
|
use function trim; |
|
31
|
|
|
use function unserialize; |
|
32
|
|
|
use function wordwrap; |
|
33
|
|
|
|
|
34
|
|
|
/** |
|
35
|
|
|
* The code in this file must be PHP 5.3+ compatible as is used to know if the application can be run. |
|
36
|
|
|
* |
|
37
|
|
|
* @private |
|
38
|
|
|
*/ |
|
39
|
|
|
final class Checker |
|
40
|
|
|
{ |
|
41
|
|
|
/** |
|
42
|
|
|
* @var RequirementCollection |
|
43
|
|
|
*/ |
|
44
|
|
|
private static $requirements = 'C:42:"Symfony\Requirements\RequirementCollection":2914:{C:13:"ArrayIterator":2886:{x:i:0;a:6:{i:0;O:32:"Symfony\Requirements\Requirement":5:{s:43:" |