You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bin/acme
+10-6Lines changed: 10 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,14 @@
1
1
#!/usr/bin/env php
2
2
<?php
3
3
4
+
useAmp\Http\Client\HttpClientBuilder;
4
5
useAmp\Loop;
5
6
useAuryn\Injector;
6
7
useKelunik\AcmeClient\AcmeFactory;
8
+
useKelunik\AcmeClient\Commands\Command;
7
9
useLeague\CLImate\CLImate;
10
+
usefunctionKelunik\AcmeClient\getBinary;
11
+
usefunctionKelunik\AcmeClient\suggestCommand;
8
12
9
13
$logo = <<<LOGO
10
14
____ __________ ___ ___
@@ -51,7 +55,7 @@ $commands = [
51
55
'help' => 'Print this help information.',
52
56
];
53
57
54
-
$binary = \Kelunik\AcmeClient\getBinary();
58
+
$binary = getBinary();
55
59
56
60
$help = implode(PHP_EOL, array_map(function ($command) use ($commands) {
57
61
$help = " <green>{$command}</green>\n";
@@ -81,8 +85,8 @@ if (!in_array(PHP_SAPI, ['cli', 'phpdbg'], true)) {
81
85
exit(1);
82
86
}
83
87
84
-
if (PHP_VERSION_ID < 70000) {
85
-
$climate->yellow("You're using an older version of PHP which is no longer supported by this client. Have a look at http://php.net/supported-versions.php and upgrade at least to PHP 7.0!");
88
+
if (PHP_VERSION_ID < 70400) {
89
+
$climate->yellow("You're using an older version of PHP which is no longer supported by this client. Have a look at https://php.net/supported-versions.php and upgrade at least to PHP 7.4!");
0 commit comments