Open Journal Systems  3.3.0
Guzzle\Parser\UriTemplate\PeclUriTemplate Class Reference
Inheritance diagram for Guzzle\Parser\UriTemplate\PeclUriTemplate:
Guzzle\Parser\UriTemplate\UriTemplateInterface

Public Member Functions

 __construct ()
 
 expand ($template, array $variables)
 

Detailed Description

Expands URI templates using the uri_template pecl extension (pecl install uri_template-beta)

https://github.com/ioseb/uri-template

Definition at line 13 of file PeclUriTemplate.php.

Constructor & Destructor Documentation

◆ __construct()

Guzzle\Parser\UriTemplate\PeclUriTemplate::__construct ( )

Definition at line 15 of file PeclUriTemplate.php.

Member Function Documentation

◆ expand()

Guzzle\Parser\UriTemplate\PeclUriTemplate::expand (   $template,
array  $variables 
)

Expand the URI template using the supplied variables

Parameters
string$templateURI Template to expand
array$variablesVariables to use with the expansion
Returns
string Returns the expanded template

Implements Guzzle\Parser\UriTemplate\UriTemplateInterface.

Definition at line 22 of file PeclUriTemplate.php.


The documentation for this class was generated from the following file: