Example #1
0
 /**
  * @param \PSX\Uri $ref
  * @return boolean
  */
 public function canResolve(Uri $ref)
 {
     return $this->baseUri->getHost() == $ref->getHost() && $this->baseUri->getPath() == $ref->getPath();
 }
Example #2
0
 protected function getKey(Uri $uri)
 {
     return $uri->getScheme() . '-' . $uri->getHost() . '-' . $uri->getPath();
 }