/** * {@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; }
/** * @return string * * @VirtualProperty() */ public function getHash() { return $this->reference->getHash(); }