src/Leevel/Kernel/Console/Doc.php
protected function convertMarkdown(string $file): bool
    {
        $className = $this->classParser->handle($file);

        if (!class_exists($className)) {
            return false;
        }

        $result = $this->utilsDoc->handleAndSave($className);

        if (true === $result) {
            $this->line(sprintf('Class <info>%s</info> was generate succeed.', $className));
        }

        return $result;
    }
protected function convertMarkdown(string $file): bool
    {
        $className = $this->classParser->handle($file);

        if (!class_exists($className)) {
            return false;
        }

        $result = $this->utilsDoc->handleAndSave($className);

        if (true === $result) {
            $this->line(sprintf('Class <info>%s</info> was generate succeed.', $className));
        }

        return $result;
    }
生成 markdown 文件.

@param string $file

@return bool