PathTemplate
class PathTemplate implements Countable
Represents a path template.
Templates use the syntax of the API platform; see the protobuf of HttpRule for details. A template consists of a sequence of literals, wildcards, and variable bindings, where each binding can have a sub-path. A string representation can be parsed into an instance of PathTemplate, which can then be used to perform matching and instantiation.
Methods
__construct(string $data)
PathTemplate constructor.
string
__toString()
No description
int
count()
No description
string
render(array $bindings)
Renders a path template using the provided bindings.
array
match(string $path)
Matches a fully qualified path template string.
Details
at line 57
__construct(string $data)
PathTemplate constructor.
at line 71
string
__toString()
at line 79
int
count()
at line 92
string
render(array $bindings)
Renders a path template using the provided bindings.
at line 139
array
match(string $path)
Matches a fully qualified path template string.