kernel/private/rest/classes/prefix_filter.php
public function filterRequestUri()
    {
        if ( !empty( $this->versionToken ) )
        {
            // Remove the first occurrence of version token
            $versionSearch = '/' . $this->versionToken;
            $versionPos = strpos( $this->request->uri, $versionSearch );
            if ( $versionPos !== false )
            {
                $this->request->uri = substr_replace( $this->request->uri, '', $versionPos, strlen( $versionSearch ) );
            }
        }
        if ( !empty( $this->apiProviderToken ) )
        {
            // Remove the first occurrence of API provider token
            $providerSearch = '/' . $this->apiProviderToken;
            $providerPos = strpos( $this->request->uri, $providerSearch );
            if ( $providerPos !== false )
            {
                $this->request->uri = substr_replace( $this->request->uri, '', $providerPos, strlen( $providerSearch ) );
            }
        }
    }
public function filterRequestUri()
    {
        if ( !empty( $this->versionToken ) )
        {
            // Remove the first occurrence of version token
            $versionSearch = '/' . $this->versionToken;
            $versionPos = strpos( $this->request->uri, $versionSearch );
            if ( $versionPos !== false )
            {
                $this->request->uri = substr_replace( $this->request->uri, '', $versionPos, strlen( $versionSearch ) );
            }
        }
        if ( !empty( $this->apiProviderToken ) )
        {
            // Remove the first occurrence of API provider token
            $providerSearch = '/' . $this->apiProviderToken;
            $providerPos = strpos( $this->request->uri, $providerSearch );
            if ( $providerPos !== false )
            {
                $this->request->uri = substr_replace( $this->request->uri, '', $providerPos, strlen( $providerSearch ) );
            }
        }
    }
public function filterRequestUri ( ) { if ( ! empty ( $ this -> versionToken ) ) { // Remove the first occurrence of version token $ versionSearch = '/' . $ this -> versionToken ; $ versionPos = strpos ( $ this -> request -> uri , $ versionSearch ) ; if ( $ versionPos !== false ) { $ this -> request -> uri = substr_replace ( $ this -> request -> uri , '' , $ versionPos , strlen ( $ versionSearch ) ) ; } } if ( ! empty ( $ this -> apiProviderToken ) ) { // Remove the first occurrence of API provider token $ providerSearch = '/' . $ this -> apiProviderToken ; $ providerPos = strpos ( $ this -> request -> uri , $ providerSearch ) ; if ( $ providerPos !== false ) { $ this -> request -> uri = substr_replace ( $ this -> request -> uri , '' , $ providerPos , strlen ( $ providerSearch ) ) ; } } }
Filters the URI property of the given ezcMvcRequest object, removing
any version token from it.

@return void
Filters the URI property of the given ezcMvcRequest object removing any version token from it .