src/Leevel/Option/Load.php
protected function loadOptionData(): array
    {
        $data = [];

        $files = glob($this->dir.'/*.php');

        $findApp = false;

        foreach ($files as $file) {
            $type = substr(basename($file), 0, -4);

            if ('app' === $type) {
                $findApp = true;
            }

            $data[$type] = (array) include $file;
        }

        if (false === $findApp) {
            throw new RuntimeException('Unable to load the app option file.');
        }

        return $data;
    }
protected function loadOptionData(): array
    {
        $data = [];

        $files = glob($this->dir.'/*.php');

        $findApp = false;

        foreach ($files as $file) {
            $type = substr(basename($file), 0, -4);

            if ('app' === $type) {
                $findApp = true;
            }

            $data[$type] = (array) include $file;
        }

        if (false === $findApp) {
            throw new RuntimeException('Unable to load the app option file.');
        }

        return $data;
    }
载入配置数据.

@return array