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

Commit 43c9266

Browse files
authored
Merge pull request #239 from swooletw/develop
Develop
2 parents abd9c7a + fa965b7 commit 43c9266

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
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 = [];

src/HttpServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function boot()
8989
$config = $this->app->make('config');
9090

9191
if ($config->get('swoole_http.websocket.enabled')) {
92-
$this->bootRoutes();
92+
$this->bootWebsocketRoutes();
9393
}
9494

9595
if ($config->get('swoole_http.server.access_log')) {

0 commit comments

Comments
 (0)