Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function init()
 {
     $root = $this->treeManager->createRootTree();
     $this->treeManager->store($root);
     $this->referenceCommit = $this->commitManager->commit($root, $this->user, sprintf('init reference "%s" by user "%s"', $this->referenceName, $this->user->getUsername()));
     $this->reference = $this->referenceManager->create($this->referenceName, $this->user, $this->referenceCommit);
     $this->referenceHash = $this->reference->getHash();
     return $root;
 }
Пример #2
0
 /**
  * @return string
  *
  * @VirtualProperty()
  */
 public function getHash()
 {
     return $this->reference->getHash();
 }