Revert "改名"

This reverts commit fdf58326
This commit is contained in:
2022-01-20 19:04:16 +08:00
parent 862acf1db1
commit b557f15a98
7 changed files with 15 additions and 17 deletions
+2 -2
View File
@@ -41,14 +41,14 @@ class Server extends AbstractServer
*/
public function init()
{
$this->router = $this->container->get(DataGrip::class)->get('ws');
$this->router = $this->getContainer()->get(DataGrip::class)->get('ws');
$handler = $this->router->find('/', 'GET');
if (is_int($handler) || is_null($handler)) {
return;
}
$this->callback = $handler->callback[0];
$this->sender = $this->container->get(Sender::class);
$this->sender = $this->getContainer()->get(Sender::class);
$this->sender->setServer($this->server);
}