src/Leevel/Kernel/Console/Doc.php
public function handle(): void
    {
        $this->includeBootstrapFile();

        if (!($files = $this->parseFiles())) {
            throw new InvalidArgumentException('Files was not found.');
        }

        $this->utilsDoc = new UtilsDoc($this->outputDir());
        $this->classParser = new ClassParser();

        $succeedCount = 0;

        foreach ($files as $file) {
            if (true === $this->convertMarkdown($file)) {
                $succeedCount++;
            }
        }

        $this->info(sprintf('A total of <comment>%d</comment> files generate succeed.', $succeedCount));
    }
public function handle(): void
    {
        $this->includeBootstrapFile();

        if (!($files = $this->parseFiles())) {
            throw new InvalidArgumentException('Files was not found.');
        }

        $this->utilsDoc = new UtilsDoc($this->outputDir());
        $this->classParser = new ClassParser();

        $succeedCount = 0;

        foreach ($files as $file) {
            if (true === $this->convertMarkdown($file)) {
                $succeedCount++;
            }
        }

        $this->info(sprintf('A total of <comment>%d</comment> files generate succeed.', $succeedCount));
    }
响应命令.