Skip to content

Commit f419727

Browse files
committed
Minor tweaks
1 parent d30127a commit f419727

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

components/uid.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,21 +63,20 @@ to create each type of UUID::
6363
// It's defined in http://gh.peabody.io/uuidv6/
6464
$uuid = Uuid::v6(); // $uuid is an instance of Symfony\Component\Uid\UuidV6
6565

66-
// UUID version 7 features a time-ordered value field derived from the widely implemented and well known
67-
// Unix Epoch timestamp source, the number of seconds since midnight 1 Jan 1970 UTC, leap seconds excluded.
66+
// UUID version 7 features a time-ordered value field derived from the well known
67+
// Unix Epoch timestamp source: the number of seconds since midnight 1 Jan 1970 UTC, leap seconds excluded.
6868
// As well as improved entropy characteristics over versions 1 or 6.
6969
$uuid = Uuid::v7();
7070

7171
// UUID version 8 provides an RFC-compatible format for experimental or vendor-specific use cases.
72-
// The only requirement is that the variant and version bits
73-
// MUST be set as defined in Section 4:
72+
// The only requirement is that the variant and version bits MUST be set as defined in Section 4:
7473
// https://www.ietf.org/archive/id/draft-peabody-dispatch-new-uuid-format-04.html#variant_and_version_fields
7574
// UUIDv8's uniqueness will be implementation-specific and SHOULD NOT be assumed.
7675
$uuid = Uuid::v8();
7776

7877
.. versionadded:: 6.2
7978

80-
Versions 7 and 8 were introduced in Symfony 6.2.
79+
UUID versions 7 and 8 were introduced in Symfony 6.2.
8180

8281
If your UUID value is already generated in another format, use any of the
8382
following methods to create a ``Uuid`` object from it::

reference/constraints/Uuid.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,9 @@ will allow alternate input formats like:
114114

115115
**type**: ``int[]`` **default**: ``[1,2,3,4,5,6,7,8]``
116116

117-
This option can be used to only allow specific `UUID versions`_. Valid versions are 1 - 8.
118-
The following PHP constants can also be used:
117+
This option can be used to only allow specific `UUID versions`_ (by default, all
118+
of them are allowed). Valid versions are 1 - 8. Instead of using numeric values,
119+
you can also use the following PHP constants to refer to each UUID version:
119120

120121
* ``Uuid::V1_MAC``
121122
* ``Uuid::V2_DCE``
@@ -128,9 +129,7 @@ The following PHP constants can also be used:
128129

129130
.. versionadded:: 6.2
130131

131-
Versions 7 and 8 were introduced in Symfony 6.2.
132-
133-
All versions are allowed by default.
132+
UUID versions 7 and 8 were introduced in Symfony 6.2.
134133

135134
.. _`Universally unique identifier (UUID)`: https://en.wikipedia.org/wiki/Universally_unique_identifier
136135
.. _`RFC 4122`: https://tools.ietf.org/html/rfc4122

0 commit comments

Comments
 (0)