Expand a URI template using client configuration data
string $template URI template to expand:
array $variables Additional variables to use in the expansion:
string
Overrides ClientInterface::expandTemplate
public function expandTemplate($template, array $variables = null) {
$expansionVars = $this
->getConfig()
->getAll();
if ($variables) {
$expansionVars = array_merge($expansionVars, $variables);
}
return $this
->getUriTemplate()
->expand($template, $expansionVars);
}