protected function processMap($arr, $prefix='') {
        
        foreach ($arr as $uri => $options) {
            
            $uri = $prefix . $this->preProcessURI($uri);
            
            foreach ($options as $method => $target) {

                if (!is_array($target)) continue;

                if (array_key_exists('name', $target)) {
                    $this->map($method, $uri, $target, $target['name']);
                } else {
                    $this->map($method, $uri, $target);
                }
            }
        }
        
    }
protected function processMap($arr, $prefix='') {
        
        foreach ($arr as $uri => $options) {
            
            $uri = $prefix . $this->preProcessURI($uri);
            
            foreach ($options as $method => $target) {

                if (!is_array($target)) continue;

                if (array_key_exists('name', $target)) {
                    $this->map($method, $uri, $target, $target['name']);
                } else {
                    $this->map($method, $uri, $target);
                }
            }
        }
        
    }
protected function processMap ( $ arr , $ prefix = '' ) { foreach ( $ arr as $ uri => $ options ) { $ uri = $ prefix . $ this -> preProcessURI ( $ uri ) ; foreach ( $ options as $ method => $ target ) { if ( ! is_array ( $ target ) ) continue ; if ( array_key_exists ( 'name' , $ target ) ) { $ this -> map ( $ method , $ uri , $ target , $ target [ 'name' ] ) ; } else { $ this -> map ( $ method , $ uri , $ target ) ; } } } }
For each array item, pre process and add to global mapping

@param array $arr
@param string $prefix
For each array item pre process and add to global mapping