src/Leevel/Option/ComposerOption.php
public function loadData(): array
    {
        if (null !== $this->loaded) {
            return $this->loaded;
        }

        $data = [];

        foreach ($this->getPackages() as $package) {
            if ($option = $this->getLeevelOption($package)) {
                $data = $data ? $this->mergeOption($data, $option) : $option;
            }
        }

        $appOption = $this->getAppComposerOption();

        return $this->loaded = $this->mergeOption($data, $appOption);
    }
public function loadData(): array
    {
        if (null !== $this->loaded) {
            return $this->loaded;
        }

        $data = [];

        foreach ($this->getPackages() as $package) {
            if ($option = $this->getLeevelOption($package)) {
                $data = $data ? $this->mergeOption($data, $option) : $option;
            }
        }

        $appOption = $this->getAppComposerOption();

        return $this->loaded = $this->mergeOption($data, $appOption);
    }
读取配置信息.

@return array