src/Leevel/Router/OpenApiRouter.php
public function addScandir(string $dir): void
    {
        if (!is_dir($dir)) {
            throw new InvalidArgumentException(
                sprintf('OpenApi scandir %s is exits.', $dir)
            );
        }

        $this->scandirs[] = $dir;
    }
public function addScandir(string $dir): void
    {
        if (!is_dir($dir)) {
            throw new InvalidArgumentException(
                sprintf('OpenApi scandir %s is exits.', $dir)
            );
        }

        $this->scandirs[] = $dir;
    }
添加一个扫描目录.

@param string $dir