Exemple #1
0
 /**
  * Gets a specific tag
  * @param  string $name The tagname
  * @return Tag
  */
 public function getTag($name)
 {
     $ref = $this->io->readRef('tags/' . $name);
     $object = $ref->getObject();
     return new Tag($name, $object);
 }
Exemple #2
0
 /**
  * Loads the reference
  * @param  string    $path The path to the reference
  * @return Reference
  */
 public function load($path)
 {
     return $this->io->readRef($path);
 }