53 abstract public function doValidate(&$uri, $config, $context);
63 public function validate(&$uri, $config, $context)
65 if ($this->default_port == $uri->port) {
70 if (!$this->may_omit_host &&
72 (!is_null($uri->scheme) && ($uri->host ===
'' || is_null($uri->host))) ||
76 (is_null($uri->scheme) && $uri->host ===
'')
79 if (is_null($uri->scheme)) {
80 if (substr($uri->path, 0, 2) !=
'//') {
89 $host = $config->get(
'URI.Host');
90 if (!is_null($host)) {
98 return $this->
doValidate($uri, $config, $context);