ekreative / uuid-extra-bundle

A convenient bundle for using ramsey/uuid in your controllers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ramsey/uuid>=4 support

Toilal opened this issue · comments

It seems this bundle doesn't support ramsey/uuid>=4 properly. As default Uuid implementation is now Ramsey\Uuid\Lazy\LazyUuidFromString instead of Ramsey\Uuid\Uuid, supportsDenormalization returns false with those instances

public function supportsDenormalization($data, $type, $format = null)
{
return $type === UuidInterface::class || $type === Uuid::class;
}