public function getRecursive($key, $default = null)
    {
        $params = $this->parameters;
        if(!strpos($key, '.')) {
            return $this->get($key, $default);
        }

        $array = explode('.', $key);
        foreach ($array as $entry) {
            if(array_key_exists($entry, $params)) {
                $params = $params[$entry];
            }else {
                return $default;
            }
        }

        return isset($params) ? $params : $default;
    }
public function getRecursive($key, $default = null)
    {
        $params = $this->parameters;
        if(!strpos($key, '.')) {
            return $this->get($key, $default);
        }

        $array = explode('.', $key);
        foreach ($array as $entry) {
            if(array_key_exists($entry, $params)) {
                $params = $params[$entry];
            }else {
                return $default;
            }
        }

        return isset($params) ? $params : $default;
    }
public function getRecursive ( $ key , $ default = null ) { $ params = $ this -> parameters ; if ( ! strpos ( $ key , '.' ) ) { return $ this -> get ( $ key , $ default ) ; } $ array = explode ( '.' , $ key ) ; foreach ( $ array as $ entry ) { if ( array_key_exists ( $ entry , $ params ) ) { $ params = $ params [ $ entry ] ; } else { return $ default ; } } return isset ( $ params ) ? $ params : $ default ; }
Gets a parameter by name recursively

@param string $key     The dotformatted key
@param mixed $default  The default value
Gets a parameter by name recursively