kernel/private/rest/classes/default_regexp_prefix_filter.php
public function filter( )
    {
        if ( preg_match( $this->getPrefixPattern(), $this->request->uri, $tokenMatches ) )
        {
            $this->versionToken = isset( $tokenMatches['version'] ) ? $tokenMatches['version'] : '';
            $this->apiProviderToken = isset( $tokenMatches['provider'] ) ? $tokenMatches['provider'] : '';

            self::$version = $this->parseVersionValue();
            self::$apiProvider = empty( $this->apiProviderToken ) ? null : $this->apiProviderToken;
        }
    }
public function filter( )
    {
        if ( preg_match( $this->getPrefixPattern(), $this->request->uri, $tokenMatches ) )
        {
            $this->versionToken = isset( $tokenMatches['version'] ) ? $tokenMatches['version'] : '';
            $this->apiProviderToken = isset( $tokenMatches['provider'] ) ? $tokenMatches['provider'] : '';

            self::$version = $this->parseVersionValue();
            self::$apiProvider = empty( $this->apiProviderToken ) ? null : $this->apiProviderToken;
        }
    }
public function filter ( ) { if ( preg_match ( $ this -> getPrefixPattern ( ) , $ this -> request -> uri , $ tokenMatches ) ) { $ this -> versionToken = isset ( $ tokenMatches [ 'version' ] ) ? $ tokenMatches [ 'version' ] : '' ; $ this -> apiProviderToken = isset ( $ tokenMatches [ 'provider' ] ) ? $ tokenMatches [ 'provider' ] : '' ; self :: $ version = $ this -> parseVersionValue ( ) ; self :: $ apiProvider = empty ( $ this -> apiProviderToken ) ? null : $ this -> apiProviderToken ; } }
Filters the request object for API provider name and version token.

API provider name is assumed to be the first URI element.

If version token exists, gets the numerical value of this token, and
filters the URI in the request object, removing said token.

This lets us not to deal with any version token data, in our route
definitions. This is a benefit, since different systems, might have
different preferences for what the version token should look like.

@return void
Filters the request object for API provider name and version token .