瀏覽代碼

Method rename.

xaav 13 年之前
父節點
當前提交
ef3d37285d
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      src/Packagist/WebBundle/Repository/Repository/GitRepository.php

+ 8 - 0
src/Packagist/WebBundle/Repository/Repository/GitRepository.php

@@ -40,7 +40,15 @@ class GitRepository implements RepositoryInterface
         return $this->owner;
     }
 
+    /**
+     * @deprecated
+     */
     public function getSource()
+    {
+        return $this->getUrl();
+    }
+
+    public function getUrl()
     {
         return 'http://github.com/'.$this->owner.'/'.$this->repository.'.git';
     }