예제 #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
파일: RefResolver.php 프로젝트: seytar/psx
 protected function getKey(Uri $uri)
 {
     return $uri->getScheme() . '-' . $uri->getHost() . '-' . $uri->getPath();
 }