コード例 #1
0
ファイル: GitUrlGenerator.php プロジェクト: AlexGk/browser
 public function generateCommitUrl(Commit $commit)
 {
     return $this->generator->generate('commit', array('hash' => $commit->getHash(), 'repository' => $this->getName($commit->getRepository())));
 }
コード例 #2
0
 /**
  * @inheritdoc
  */
 public function generateCommitUrl(Commit $commit)
 {
     return $this->generator->generate($this->routeNames['commit'], array($this->routeArgs['commit_repository'] => $this->getName($commit->getRepository()), $this->routeArgs['commit_hash'] => $commit->getHash()));
 }