Set or returns the config path
@param string|null $configPath
@return null|string
420862
public function configPath(?string $configPath = null) {
        if ($configPath != null) {
            $this->configPath = $configPath;
        }
        else {
            if (!isset($this->configPath)) {
                $this->configPath = $this->basePath() . DIRECTORY_SEPARATOR . "config";
            }
        }
        return $this->configPath;
    }
210055
protected function getConfigurationNesting(SplFileInfo $file, $configPath)
    {
        $directory = $file->getPath();

        if ($tree = trim(str_replace($configPath, '', $directory), DIRECTORY_SEPARATOR)) {
            $tree = str_replace(DIRECTORY_SEPARATOR, '.', $tree) . '.';
        }

        return $tree;
    }
1263065
protected function resolvePath($path)
    {
        $parts = explode('.', $path);
        $settings = $this->settings;
        foreach ($parts as $part) {
            if (!isset($settings[$part])) {
                return null;
            }
        
            $settings = $settings[$part];
        }
        
        return $settings;
    }
759870
protected function setConfigPath()
    {
        $this->configPath = $this->basePath . '/' . static::$configsSubdir; // default
        $pathList = $this->getBasePathList();
        foreach ($pathList as $path) {
            $confPath = $path . '/' . static::$configsSubdir;
            if (is_dir($confPath)) {
                $this->configPath = $confPath;
                break;
            }
        }
    }
487778
private function getConfigFileContent(string $configPath) : array
    {
        // if empty just skip it
        if (!filesize($configPath)) {
            return [];
        }

        // read the file handler
        $config = file_get_contents($configPath);

        // check for linebreaks
        if (strpos($config, "\n") === false) {
            $config = [
                $config
            ];
        } else {
            $config = (array) explode("\n", $config);
        }

        return $config;
    }
1243535
public function loadWithDefault(string $configPath, string $defaultConfigPath): void
    {
        if (!file_exists($configPath)) {
            return;
        }
        $configDefault = include $defaultConfigPath;
        $config = include $configPath;
        if (!is_array($configDefault) && !is_array($config)) {
            return;
        }
        $this->loadArray(array_merge($configDefault, $config));
    }
67243
public function getConfigPath()
    {
        if (null == $this->configPath) {
            $this->configPath = getcwd().'/Configuration';
            Configuration::addPath($this->configPath);
        }
        return $this->configPath;
    }
82292
private function getDestinationPath($configPath, $modelName = null)
    {
        $path = $this->folder . DIRECTORY_SEPARATOR . config('zgldh-scaffold.templates.' . $configPath)[1];
        $path = Utils::fillTemplate(['MODEL_NAME' => $modelName], $path);
        return $path;
    }
62692
public function generateBuildConfig($configPath)
    {
        $config = $this->collectConfigs();
        $config['build']['baseUrl'] = './';
        $config['build']['out'] = './' . $config['build_path'];
        $config['build']['mainConfigFile'] = './' . $configPath;
        $paths = [
            // build-in configuration
            'require-config' => './' . substr($configPath, 0, -3),
            // build-in require.js lib
            'require-lib' => 'bundles/ekynarequirejs/require',
        ];
        $config['build']['paths'] = array_merge($config['build']['paths'], $paths);
        $config['build']['include'] = array_merge(
            array_keys($paths),
            //array_keys($config['config']['paths'])
            $config['build']['include']
        );
        return $config['build'];
    }
1107068
func (o *Opts) ConfigPath(path string) *Opts {
	o.cfgPath = path
	return o
}
1357040
public function setConfigPath($path) 
    {
        if (file_exists($path)) {
            $this->configPath = $path;
        } else {
            throw new Exception(
                'Configuration file could not be found at ' .
                htmlspecialchars($path, ENT_QUOTES, 'UTF-8')
            );
        }
    }
89064
public function path($path = null)
    {
        if (!func_num_args()) {
            return $this->_path;
        }
        $this->_path = '/' . ltrim($path, '/');
        return $this;
    }
1334513
def config_path(path=None, final=False):
    """"""
    if final and path:
        return path

    if path is None:
        path = default_config_dir()
    try:
        os.makedirs(path)
    except OSError as e:  # pragma: no cover
        if e.errno != errno.EEXIST:
            raise
    return os.path.join(path, 'config.yml')
10822
public ConfigPath findByPath(final String path) {
        return paths.stream()
                .filter(it -> it.getPath().equalsIgnoreCase(path))
                .findFirst()
                .orElse(null);
    }
1172029
private function getCache($configPath)
  {
    if (!isset($this->cacheList[$configPath])) {
      $cachePath = $this->getCachePath($configPath);
      $this->cacheList[$configPath] = new ConfigCache($cachePath, true);
    }

    return $this->cacheList[$configPath];
  }
260932
public function loadFrom(Repository $config, $configPath)
    {
        foreach ($this->filesIn($configPath) as $group => $configFile) {
            $config->set($group, require $configFile);
        }
    }
977765
protected function getSamlFile($configPath, $url)
    {
        if ($url) {
            return Storage::disk('saml')->url($configPath);
        }
        return Storage::disk('saml')->get($configPath);
    }