src/Budkit/Parameter/Repository/Parser/Ini.php
public function readParams($filename)
    {

        //We will only parse the file if it has not already been parsed!;
        if (!array_key_exists($filename, $this->namespace)) {
            if (file_exists($filename)) {
                if (($this->namespace[$filename] = parse_ini_file($filename, true)) === FALSE) {
                    throw new Exception("Could not Parse the ini file {$filename}");
                    return false;
                } else {
                    //Add the iniParams to $this->params;
                    return $this->namespace[$filename];
                }
            } else {
                // throw new Exception( sprintf("The configuration file (%s) does not exists",$filename ) );
                return [];
            }
        } else {
            return $this->namespace[$filename];
        }
    }
public function readParams($filename)
    {

        //We will only parse the file if it has not already been parsed!;
        if (!array_key_exists($filename, $this->namespace)) {
            if (file_exists($filename)) {
                if (($this->namespace[$filename] = parse_ini_file($filename, true)) === FALSE) {
                    throw new Exception("Could not Parse the ini file {$filename}");
                    return false;
                } else {
                    //Add the iniParams to $this->params;
                    return $this->namespace[$filename];
                }
            } else {
                // throw new Exception( sprintf("The configuration file (%s) does not exists",$filename ) );
                return [];
            }
        } else {
            return $this->namespace[$filename];
        }
    }
public function readParams ( $ filename ) { //We will only parse the file if it has not already been parsed!; if ( ! array_key_exists ( $ filename , $ this -> namespace ) ) { if ( file_exists ( $ filename ) ) { if ( ( $ this -> namespace [ $ filename ] = parse_ini_file ( $ filename , true ) ) === FALSE ) { throw new Exception ( "Could not Parse the ini file {$filename}" ) ; return false ; } else { //Add the iniParams to $this->params; return $ this -> namespace [ $ filename ] ; } } else { // throw new Exception( sprintf("The configuration file (%s) does not exists",$filename ) ); return [ ] ; } } else { return $ this -> namespace [ $ filename ] ; } }
Parses an INI configuration file

@param type $filename
@return boolean
Parses an INI configuration file