]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blobdiff - vendor/justinrainbow/json-schema/src/JsonSchema/UriResolverInterface.php
MediaWiki 1.30.2
[autoinstallsdev/mediawiki.git] / vendor / justinrainbow / json-schema / src / JsonSchema / UriResolverInterface.php
diff --git a/vendor/justinrainbow/json-schema/src/JsonSchema/UriResolverInterface.php b/vendor/justinrainbow/json-schema/src/JsonSchema/UriResolverInterface.php
new file mode 100644 (file)
index 0000000..4eb50c0
--- /dev/null
@@ -0,0 +1,26 @@
+<?php
+
+/*
+ * This file is part of the JsonSchema package.
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace JsonSchema;
+
+/**
+ * @package JsonSchema
+ */
+interface UriResolverInterface
+{
+    /**
+     * Resolves a URI
+     *
+     * @param string      $uri     Absolute or relative
+     * @param null|string $baseUri Optional base URI
+     *
+     * @return string Absolute URI
+     */
+    public function resolve($uri, $baseUri = null);
+}