private function applyRouteParameters($uri, array $parameters, array &$additionalParams = array())
    {
        $result = $uri;

        foreach ($parameters as $key => $value) {
            $count = 0;
            $result = str_replace('{'.$key.'}', $value, $result, $count);

            if (0 === $count) {
                $additionalParams[$key] = $value;
            }
        }

        return $result;
    }
private function applyRouteParameters($uri, array $parameters, array &$additionalParams = array())
    {
        $result = $uri;

        foreach ($parameters as $key => $value) {
            $count = 0;
            $result = str_replace('{'.$key.'}', $value, $result, $count);

            if (0 === $count) {
                $additionalParams[$key] = $value;
            }
        }

        return $result;
    }
private function applyRouteParameters ( $ uri , array $ parameters , array & $ additionalParams = array ( ) ) { $ result = $ uri ; foreach ( $ parameters as $ key => $ value ) { $ count = 0 ; $ result = str_replace ( '{' . $ key . '}' , $ value , $ result , $ count ) ; if ( 0 === $ count ) { $ additionalParams [ $ key ] = $ value ; } } return $ result ; }
Applies parameters to route pattern.

@param  string $uri              The route pattern.
@param  array  $parameters       An array of parameters to apply.
@param  array  $additionalParams Optional, the parameters to found in the pattern.

@return string                   The route uri modified.
Applies parameters to route pattern .