src/Guzzle/Http/Client.php
protected function expandTemplate($template, array $variables = null)
    {
        $expansionVars = $this->getConfig()->toArray();
        if ($variables) {
            $expansionVars = $variables + $expansionVars;
        }

        return $this->getUriTemplate()->expand($template, $expansionVars);
    }
protected function expandTemplate($template, array $variables = null)
    {
        $expansionVars = $this->getConfig()->toArray();
        if ($variables) {
            $expansionVars = $variables + $expansionVars;
        }

        return $this->getUriTemplate()->expand($template, $expansionVars);
    }
protected function expandTemplate ( $ template , array $ variables = null ) { $ expansionVars = $ this -> getConfig ( ) -> toArray ( ) ; if ( $ variables ) { $ expansionVars = $ variables + $ expansionVars ; } return $ this -> getUriTemplate ( ) -> expand ( $ template , $ expansionVars ) ; }
Expand a URI template while merging client config settings into the template variables

@param string $template  Template to expand
@param array  $variables Variables to inject

@return string
Expand a URI template while merging client config settings into the template variables