Browse Source

implement url string resolve method

main
yggverse 9 months ago
parent
commit
d3bea00b02
  1. 23
      src/Resolve.php

23
src/Resolve.php

@ -126,6 +126,29 @@ class Resolve @@ -126,6 +126,29 @@ class Resolve
return $this->_shuffle;
}
public function url(
string $url,
array &$result = [],
array &$error = [],
?\Yggverse\Net\Address &$resolved = null
): ?string
{
$resolved = $this->address(
new \Yggverse\Net\Address(
$url
),
$result,
$error
);
if ($resolved)
{
return $resolved->get();
}
return null;
}
public function address(
\Yggverse\Net\Address $address,
array &$result = [],

Loading…
Cancel
Save