Skip to content

Commit e4c70ca

Browse files
committed
add Startup::init
1 parent d5d6127 commit e4c70ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Ubiquity/servers/swoole/SwooleServer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public function init($config, $basedir) {
7878
$this->config = $config;
7979
$this->basedir = $basedir;
8080
$this->httpInstance = new SwooleHttp();
81+
\Ubiquity\controllers\Startup::init($config);
8182
}
8283

8384
/**
@@ -177,7 +178,7 @@ protected function handle(Request $request, Response $response) {
177178
$this->parseRequest($request);
178179
\ob_start();
179180
\Ubiquity\controllers\Startup::setHttpInstance($this->httpInstance);
180-
\Ubiquity\controllers\Startup::run($this->config);
181+
\Ubiquity\controllers\Startup::forward($request->get['c']);
181182
$response->end(\ob_get_clean());
182183
}
183184

0 commit comments

Comments
 (0)