File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 22
33require __DIR__ .'/vendor/autoload.php ' ;
44
5- use SwooleTW \Http \Coroutine \Connectors \ConnectorFactory ;
65use SwooleTW \Http \Helpers \FW ;
76use 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 = [];
Original file line number Diff line number Diff 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 ' )) {
You can’t perform that action at this time.
0 commit comments