File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -176,9 +176,11 @@ your services and use it as follows:
176
176
{
177
177
$uuid = $this->uuidFactory->create();
178
178
179
- $nameBasedUuid = $this->uuidFactory->nameBased(/** ... */);
180
- $randomBasedUuid = $this->uuidFactory->randomBased();
181
- $timestampBased = $this->uuidFactory->timeBased();
179
+ $randomBasedUuid = $this->uuidFactory->randomBased()->create();
180
+ // $namespace can be omitted if a default is configured in the factory (see below)
181
+ $nameBasedUuid = $this->uuidFactory->nameBased($namespace)->create();
182
+ // $node can be omitted if a default node is configured in the factory (see below)
183
+ $timestampBased = $this->uuidFactory->timeBased($node)->create();
182
184
183
185
// ...
184
186
}
@@ -253,7 +255,7 @@ You can configure these default values::
253
255
.. versionadded :: 7.4
254
256
255
257
Starting from Symfony 7.4, the default version for both UUIDs and time-based
256
- UUIDs is UUIDv7 . In previous versions, the default was UUIDv6 .
258
+ UUIDs is v7 . In previous versions, the default was v6 .
257
259
258
260
Converting UUIDs
259
261
~~~~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments