src/Budkit/Parameter/Repository/File.php
public function load($environment, $namespace)
    {

        //evironments = /config/<environment>/namespace.ini[section].key
        $file = $this->directory;
        $file .= !empty($environment) ? $environment . DS : DS;
        $file .= $namespace;
        $file .= $this->extension;


        //Check that we have a file named namespace
        if (!array_key_exists($this->extension, $this->handlers)) {
            throw new \Exception("config file handler for {$this->extension} does not exists");
        }


        $handler = $this->handlers[$this->extension];
        $params = $handler->readParams($file);


        return $params;
    }
public function load($environment, $namespace)
    {

        //evironments = /config/<environment>/namespace.ini[section].key
        $file = $this->directory;
        $file .= !empty($environment) ? $environment . DS : DS;
        $file .= $namespace;
        $file .= $this->extension;


        //Check that we have a file named namespace
        if (!array_key_exists($this->extension, $this->handlers)) {
            throw new \Exception("config file handler for {$this->extension} does not exists");
        }


        $handler = $this->handlers[$this->extension];
        $params = $handler->readParams($file);


        return $params;
    }
public function load ( $ environment , $ namespace ) { //evironments = /config/<environment>/namespace.ini[section].key $ file = $ this -> directory ; $ file .= ! empty ( $ environment ) ? $ environment . DS : DS ; $ file .= $ namespace ; $ file .= $ this -> extension ; //Check that we have a file named namespace if ( ! array_key_exists ( $ this -> extension , $ this -> handlers ) ) { throw new \ Exception ( "config file handler for {$this->extension} does not exists" ) ; } $ handler = $ this -> handlers [ $ this -> extension ] ; $ params = $ handler -> readParams ( $ file ) ; return $ params ; }
Loads config from a specific namespace

@param $env
@param string $group
@param string $namespace
Loads config from a specific namespace