projects
/
pharext
/
pharext.org
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
9aadd6e
)
bootstrap: add uri_template fallback
author
Michael Wallner
<mike@php.net>
Fri, 16 Dec 2016 09:10:07 +0000
(10:10 +0100)
committer
Michael Wallner
<mike@php.net>
Fri, 20 Dec 2019 12:21:58 +0000
(13:21 +0100)
app/bootstrap/uri_template.php
[new file with mode: 0644]
patch
|
blob
diff --git a/app/bootstrap/uri_template.php
b/app/bootstrap/uri_template.php
new file mode 100644
(file)
index 0000000..
d980670
--- /dev/null
+++ b/
app/bootstrap/uri_template.php
@@ -0,0
+1,8
@@
+<?php
+
+if (!function_exists("uri_template")) {
+ function uri_template($str, $arr) {
+ $tpl = new Rize\UriTemplate;
+ return $tpl->expand($str, $arr);
+ }
+}