summaryrefslogtreecommitdiff
path: root/vendor/OAuth/Common/Http/Uri/UriFactoryInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/OAuth/Common/Http/Uri/UriFactoryInterface.php')
-rwxr-xr-xvendor/OAuth/Common/Http/Uri/UriFactoryInterface.php42
1 files changed, 42 insertions, 0 deletions
diff --git a/vendor/OAuth/Common/Http/Uri/UriFactoryInterface.php b/vendor/OAuth/Common/Http/Uri/UriFactoryInterface.php
new file mode 100755
index 00000000..2b157d84
--- /dev/null
+++ b/vendor/OAuth/Common/Http/Uri/UriFactoryInterface.php
@@ -0,0 +1,42 @@
+<?php
+
+namespace OAuth\Common\Http\Uri;
+
+/**
+ * Factory interface for uniform resource indicators
+ */
+interface UriFactoryInterface
+{
+ /**
+ * Factory method to build a URI from a super-global $_SERVER array.
+ *
+ * @param array $_server
+ *
+ * @return UriInterface
+ */
+ public function createFromSuperGlobalArray(array $_server);
+
+ /**
+ * Creates a URI from an absolute URI
+ *
+ * @param string $absoluteUri
+ *
+ * @return UriInterface
+ */
+ public function createFromAbsolute($absoluteUri);
+
+ /**
+ * Factory method to build a URI from parts
+ *
+ * @param string $scheme
+ * @param string $userInfo
+ * @param string $host
+ * @param string $port
+ * @param string $path
+ * @param string $query
+ * @param string $fragment
+ *
+ * @return UriInterface
+ */
+ public function createFromParts($scheme, $userInfo, $host, $port, $path = '', $query = '', $fragment = '');
+}