setName('testcommand') ->setDescription('the testcommand command'); } protected function execute(Input $input, Output $output) { // 指令输出 $obj = new ResourceAutoAllocation(); $obj->doJob(); $output->writeln('testcommand'); } }