public function load($file, $type = null)
    {
        $ini = parse_ini_file($this->getPath($file), true, INI_SCANNER_RAW);

        if (false === $ini) {
            throw new InvalidArgumentException("The configuration file '$file' has invalid content.");
        }

        $ini = $this->parse($ini); //Parse for nested sections
        $ini = $this->resolveParams($ini); //Resolve parameter placeholders (%name%)

        return $ini;
    }