src/Leevel/Kernel/Utils/Doc.php
public function handleAndSave(string $className, ?string $path = null): bool
    {
        $this->setSavePath($path);

        $markdown = trim($this->handle($className));

        if (!$markdown || !$this->savePath) {
            return false;
        }

        $this->writeCache($this->savePath, $markdown);

        return true;
    }
public function handleAndSave(string $className, ?string $path = null): bool
    {
        $this->setSavePath($path);

        $markdown = trim($this->handle($className));

        if (!$markdown || !$this->savePath) {
            return false;
        }

        $this->writeCache($this->savePath, $markdown);

        return true;
    }
解析文档并保存.

@param string $className
@param string $path

@return bool