Class Guzzle\Parser\UriTemplate\UriTemplate

InheritanceGuzzle\Parser\UriTemplate\UriTemplate
ImplementsGuzzle\Parser\UriTemplate\UriTemplateInterface

Expands URI templates using an array of variables

Public Methods

Hide inherited methods

MethodDescriptionDefined By
expand() Guzzle\Parser\UriTemplate\UriTemplate
setRegex() Set the regex patten used to expand URI templates Guzzle\Parser\UriTemplate\UriTemplate

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
DEFAULT_PATTERN '/\{([^\}]+)\}/' Guzzle\Parser\UriTemplate\UriTemplate

Method Details

expand() public method

public void expand ( $template, array $variables )
$template
$variables
setRegex() public method

Set the regex patten used to expand URI templates

public void setRegex ( $regexPattern )
$regexPattern string