ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
UniqueIDIdentificationGenerator.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2
4
6
13{
14
20 {
21 $f = new Factory();
22 try {
23 $unique_id = $f->uuid4AsString();
24 } catch (\Exception $e) {
25 throw new \LogicException('Generating uuid failed: ' . $e->getMessage());
26 } finally {
27 return new ResourceIdentification($unique_id);
28 }
29 }
30}
An exception for terminatinating execution or to throw for unit testing.