/**
  * @inheritdoc
  */
 public function generateTreeUrl(Revision $revision, $path = '')
 {
     if ($revision instanceof Tag or $revision instanceof Branch) {
         $rev = $revision->getName();
     } else {
         $rev = $revision->getRevision();
     }
     return $this->generator->generate($this->routeNames['tree'], array($this->routeArgs['tree_repository'] => $this->getName($revision->getRepository()), $this->routeArgs['tree_revision'] => $rev, $this->routeArgs['tree_path'] => $path));
 }
Beispiel #2
0
 public function generateTreeUrl(Revision $revision, $path = '')
 {
     return $this->generator->generate('tree', array('revision' => $revision->getRevision(), 'path' => $path, 'repository' => $this->getName($revision->getRepository())));
 }