This commit is contained in:
2021-02-22 18:05:21 +08:00
parent 95970faecb
commit e4670ecc3f
+2 -1
View File
@@ -65,6 +65,7 @@ class Node extends HttpService
public function afterInit() public function afterInit()
{ {
listen(Event::SERVER_AFTER_WORKER_START, [$this, 'restructure']); listen(Event::SERVER_AFTER_WORKER_START, [$this, 'restructure']);
var_dump($this, 'restructure');
} }
/** /**
@@ -445,7 +446,7 @@ class Node extends HttpService
*/ */
private function restructure(): static private function restructure(): static
{ {
$this->error('eeee'); var_dump($this, 'restructure');
if (empty($this->handler)) { if (empty($this->handler)) {
return $this; return $this;
} }