8000 14300 Add support for UUIDv6 in Uuid constraint by JohJohan · Pull Request #14334 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

14300 Add support for UUIDv6 in Uuid constraint #14334

New issue 8000

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 5, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14300 Update support for Uuid 6
  • Loading branch information
JohJohan authored and javiereguiluz committed Oct 5, 2020
commit bf310c1ecb2c3289a3517c60965732db17fb207d
7 changes: 4 additions & 3 deletions reference/constraints/Uuid.rst
Original file line number Diff line number Diff line change
Expand Up @@ -124,18 +124,19 @@ will allow alternate input formats like:
``versions``
~~~~~~~~~~~~

**type**: ``int[]`` **default**: ``[1,2,3,4,5]``
**type**: ``int[]`` **default**: ``[1,2,3,4,5,6]``

This option can be used to only allow specific `UUID versions`_. Valid versions are 1 - 5.
This option can be used to only allow specific `UUID versions`_. Valid versions are 1 - 6.
The following PHP constants can also be used:

* ``Uuid::V1_MAC``
* ``Uuid::V2_DCE``
* ``Uuid::V3_MD5``
* ``Uuid::V4_RANDOM``
* ``Uuid::V5_SHA1``
* ``Uuid::V6_SORTABLE``

All five versions are allowed by default.
All six versions are allowed by default.

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