3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
12 use GuzzleHttp\Psr7\Uri
;
13 use Psr\Http\Message\UriInterface
;
18 * Parse url to a UriInterface.
22 * @return \Psr\Http\Message\UriInterface
24 public static function parseUrl($url) {
29 * Unparse url back to a string.
31 * @param \Psr\Http\Message\UriInterface $parsed
35 public static function unparseUrl(UriInterface
$parsed) {
36 return $parsed->__toString();