function uri_template in Lockr 7.3
Expands a URI template
Parameters
string $template URI template:
array $variables Template variables:
Return value
string
File
- vendor/
guzzlehttp/ guzzle/ src/ functions.php, line 17
Namespace
GuzzleHttpCode
function uri_template($template, array $variables) {
if (extension_loaded('uri_template')) {
// @codeCoverageIgnoreStart
return \uri_template($template, $variables);
// @codeCoverageIgnoreEnd
}
static $uriTemplate;
if (!$uriTemplate) {
$uriTemplate = new UriTemplate();
}
return $uriTemplate
->expand($template, $variables);
}