src/Leevel/Option/ComposerOption.php
protected function getPackages(): array
    {
        $packages = [];

        $installedJson = $this->path.'/vendor/composer/installed.json';

        if (is_file($installedJson)) {
            $packages = $this->getFileContent($installedJson);
        }

        return $packages;
    }
protected function getPackages(): array
    {
        $packages = [];

        $installedJson = $this->path.'/vendor/composer/installed.json';

        if (is_file($installedJson)) {
            $packages = $this->getFileContent($installedJson);
        }

        return $packages;
    }
获取包列表.

@return array