18 $this->embedsResource = (bool) $embeds_resource;
21 public function make($string) {
22 $embeds = (bool) $string;
28 if (
$config->get(
'URI.Disable'))
return false;
33 $uri = $this->parser->parse($uri);
34 if ($uri ===
false)
return false;
37 $context->register(
'EmbeddedURI', $this->embedsResource);
47 $uri_def =
$config->getDefinition(
'URI');
52 $scheme_obj = $uri->getSchemeObj(
$config, $context);
53 if (!$scheme_obj)
break;
54 if ($this->embedsResource && !$scheme_obj->browsable)
break;
67 $context->destroy(
'EmbeddedURI');
68 if (!
$ok)
return false;
71 return $uri->toString();