You are here

function uri_template in Auth0 Single Sign On 8.2

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

GuzzleHttp

Code

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);
}