File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -62,15 +62,10 @@ to create each type of UUID::
62
62
If your UUID is generated by another system, use the ``fromString() `` method to
63
63
create an object and make use of the utilities available for Symfony UUIDs::
64
64
65
- // this value is generated somewhere else
65
+ // this value is generated somewhere else (can also be in binary format)
66
66
$uuidValue = 'd9e7a184-5d5b-11ea-a62a-3499710062d0';
67
67
$uuid = Uuid::fromString($uuidValue);
68
68
69
- If your UUIDs are generated in binary format, use the ``fromBinary() `` method
70
- to create the objects for them::
71
-
72
- $uuid = Uuid::fromBinary($uuidBinaryContents);
73
-
74
69
Converting UUIDs
75
70
~~~~~~~~~~~~~~~~
76
71
@@ -140,15 +135,10 @@ Instantiate the ``Ulid`` class to generate a random ULID value::
140
135
If your ULID is generated by another system, use the ``fromString() `` method to
141
136
create an object and make use of the utilities available for Symfony ULIDs::
142
137
143
- // this value is generated somewhere else
138
+ // this value is generated somewhere else (can also be in binary format)
144
139
$ulidValue = '01E439TP9XJZ9RPFH3T1PYBCR8';
145
140
$ulid = Ulid::fromString($ulidValue);
146
141
147
- If your ULIDs are generated in binary format, use the ``fromBinary() `` method
148
- to create the objects for them::
149
-
150
- $ulid = Ulid::fromBinary($ulidBinaryContents);
151
-
152
142
Converting ULIDs
153
143
~~~~~~~~~~~~~~~~
154
144
You can’t perform that action at this time.
0 commit comments