setName('reset') ->setDescription('the reset administrator password command'); } protected function execute(Input $input, Output $output) { LoginService::resetAdministratorPassword(); // 指令输出 $output->writeln('password reset success'); } }