示例#1
0
文件: Document.php 项目: seytar/psx
 /**
  * @param \PSX\Uri $ref
  * @return boolean
  */
 public function canResolve(Uri $ref)
 {
     return $this->baseUri->getHost() == $ref->getHost() && $this->baseUri->getPath() == $ref->getPath();
 }
示例#2
0
 protected function getKey(Uri $uri)
 {
     return $uri->getScheme() . '-' . $uri->getHost() . '-' . $uri->getPath();
 }