PHPPM\Commands\ConfigTrait::getConfigPath PHP Méthode

getConfigPath() protected méthode

protected getConfigPath ( ) : string | null
Résultat 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);
            }
        }
    }