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 */