コード例 #1
0
ファイル: Publisher.php プロジェクト: kankje/xi-filelib
 /**
  * @param string $url
  * @return array Tuple of file and version
  * @throws RuntimeException
  */
 public function reverseUrl($url)
 {
     if (!$this->linker instanceof ReversibleLinker) {
         throw new RuntimeException("Reversible linker is needed to reverse an url");
     }
     return $this->linker->reverseLink($url);
 }