From 9376a73628ed16dd1d4b49f68e6391818b9a1f61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 14 Jul 2025 17:55:15 +0800 Subject: [PATCH] eee --- ServerCommand.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/ServerCommand.php b/ServerCommand.php index 3aa7840..70bb61b 100644 --- a/ServerCommand.php +++ b/ServerCommand.php @@ -33,6 +33,7 @@ class ServerCommand extends Command { + #[Container(State::class)] public State $state; @@ -64,17 +65,6 @@ class ServerCommand extends Command public EventProvider $eventProvider; - /** - * @param string|null $name - * @throws Exception - */ - public function __construct(string $name = null) - { - parent::__construct($name); - $this->state = Kiri::getDi()->get(State::class); - } - - /** * @return void */