protected function resolvePath(string $rootPath, string $configFilePath): string
    {
        $file = Path::makeAbsolute($configFilePath, $rootPath);

        if (!file_exists($file)) {
            throw new ConfigException("Config file doesn't exist.");
        }

        return $file;
    }
protected function resolvePath(string $rootPath, string $configFilePath): string
    {
        $file = Path::makeAbsolute($configFilePath, $rootPath);

        if (!file_exists($file)) {
            throw new ConfigException("Config file doesn't exist.");
        }

        return $file;
    }
protected function resolvePath ( string $ rootPath , string $ configFilePath ) : string { $ file = Path :: makeAbsolute ( $ configFilePath , $ rootPath ) ; if ( ! file_exists ( $ file ) ) { throw new ConfigException ( "Config file doesn't exist." ) ; } return $ file ; }
Resolve config file path and ensure it exists.

@param string $rootPath
@param string $configFilePath

@throws ConfigException

@return string
Resolve config file path and ensure it exists .