Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit fa965b7

Browse files
committed
make compatible for dotenv 3
1 parent 9783f93 commit fa965b7

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

copy_versioned_files.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,18 @@
22

33
require __DIR__.'/vendor/autoload.php';
44

5-
use SwooleTW\Http\Coroutine\Connectors\ConnectorFactory;
65
use SwooleTW\Http\Helpers\FW;
76
use SwooleTW\Http\Task\QueueFactory;
7+
use SwooleTW\Http\Coroutine\Connectors\ConnectorFactory;
8+
9+
try {
10+
$framework = ucfirst(FW::current());
11+
$version = FW::version();
12+
} catch (Throwable $e) {
13+
echo "No files were generated.\n";
14+
die;
15+
}
816

9-
$version = FW::version();
10-
$framework = ucfirst(FW::current());
1117
$color = "\033[0;32m";
1218
$noColor = "\033[0m";
1319
$stubs = [];

0 commit comments

Comments
 (0)