src/Leevel/Kernel/KernelConsole.php
public function handle(InputInterface $input = null, OutputInterface $output = null): int
    {
        $this->registerBaseService();

        $this->bootstrap();

        $this->setGlobalReplace();

        $this->loadCommands();

        return $this->getConsoleApplication()->run($input, $output);
    }
public function handle(InputInterface $input = null, OutputInterface $output = null): int
    {
        $this->registerBaseService();

        $this->bootstrap();

        $this->setGlobalReplace();

        $this->loadCommands();

        return $this->getConsoleApplication()->run($input, $output);
    }
响应命令行请求

@param \Symfony\Component\Console\Input\InputInterface   $input
@param \Symfony\Component\Console\Output\OutputInterface $output

@return int