Пример #1
0
 /**
  * @return mixed
  * @throws \Exception
  */
 public function createUuid()
 {
     if (!$this->getInstanceIdentifier()) {
         throw new \Exception("No instance identifier specified.");
     }
     $uuid = \UUID::generate(\UUID::UUID_NAME_SHA1, \UUID::FMT_STRING, $this->getUuidResourceName(), $this->getInstanceIdentifier());
     return $uuid;
 }