File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 18
18
use Symfony \Component \Validator \Exception \UnexpectedTypeException ;
19
19
20
20
/**
21
- * Validates whether the value is a valid UUID per RFC 4122.
21
+ * Validates whether the value is a valid UUID (also known as GUID).
22
+ *
23
+ * Strict validation will allow a UUID as specified per RFC 4122.
24
+ * Loose validation will allow any type of UUID.
25
+ *
26
+ * For better compatibility, both loose and strict, you should consider using a specialized UUID library like "ramsey/uuid" instead.
22
27
*
23
28
* @author Colin O'Dell <colinodell@gmail.com>
24
29
* @author Bernhard Schussek <bschussek@gmail.com>
25
30
*
26
31
* @see http://tools.ietf.org/html/rfc4122
27
32
* @see https://en.wikipedia.org/wiki/Universally_unique_identifier
33
+ * @see https://github.com/ramsey/uuid
28
34
*/
29
35
class UuidValidator extends ConstraintValidator
30
36
{
You can’t perform that action at this time.
0 commit comments