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;
    }
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;
    }
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 ; }
Loads a resource, merge it with the default configuration array and resolve its parameters.

@param  mixed  $file The resource
@param  string $type The resource type
@return array  The configuration array

@return array

@throws \InvalidArgumentException                                if configuration file not found
@throws \Propel\Common\Config\Exception\InvalidArgumentException When ini file is not valid
@throws \Propel\Common\Config\Exception\InputOutputException     if configuration file is not readable
Loads a resource merge it with the default configuration array and resolve its parameters .