bootstrap: add uri_template fallback
authorMichael Wallner <mike@php.net>
Fri, 16 Dec 2016 09:10:07 +0000 (10:10 +0100)
committerMichael 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]

diff --git a/app/bootstrap/uri_template.php b/app/bootstrap/uri_template.php
new file mode 100644 (file)
index 0000000..d980670
--- /dev/null
@@ -0,0 +1,8 @@
+<?php
+
+if (!function_exists("uri_template")) {
+       function uri_template($str, $arr) {
+               $tpl = new Rize\UriTemplate;
+               return $tpl->expand($str, $arr);
+       }
+}