PHPPM\Commands\ConfigTrait::getConfigPath PHP Method

getConfigPath() protected method

protected getConfigPath ( ) : string | null
return string | null
    protected function getConfigPath()
    {
        $possiblePaths = [$this->file, sprintf('%s/%s', dirname($GLOBALS['argv'][0]), $this->file)];
        foreach ($possiblePaths as $path) {
            if (file_exists($path)) {
                return realpath($path);
            }
        }
    }