File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -158,8 +158,9 @@ following methods to create a ``Uuid`` object from it::
158
158
$uuid = Uuid::fromBase58('TuetYWNHhmuSQ3xPoVLv9M');
159
159
$uuid = Uuid::fromRfc4122('d9e7a184-5d5b-11ea-a62a-3499710062d0');
160
160
161
- You can also use the ``UuidFactory `` to generate UUIDs. First, you may
162
- configure the behavior of the factory using configuration files::
161
+ You can also use the ``UuidFactory `` to generate UUIDs. By default, this factory
162
+ uses UUIDv7 for default and time-based UUIDs, UUIDv5 for name-based UUIDS, and
163
+ UUIDv4 for random-based UUIDs, but you can configure this behavior::
163
164
164
165
.. configuration-block ::
165
166
@@ -218,6 +219,11 @@ configure the behavior of the factory using configuration files::
218
219
]);
219
220
};
220
221
222
+ .. versionadded :: 7.4
223
+
224
+ Starting from Symfony 7.4, the default version for both UUIDs and time-based
225
+ UUIDs is UUIDv7. In previous versions, the default was UUIDv6.
226
+
221
227
Then, you can inject the factory in your services and use it to generate UUIDs based
222
228
on the configuration you defined::
223
229
You can’t perform that action at this time.
0 commit comments