mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-04 22:04:59 +00:00
add a discrimnator type on onbjects
This commit is contained in:
@@ -24,7 +24,7 @@ use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @internal we keep this normalizer, because the property 'text' may be replace by a rendering in the future
|
||||
*/
|
||||
class UserNormalizer implements NormalizerInterface
|
||||
{
|
||||
@@ -32,8 +32,10 @@ class UserNormalizer implements NormalizerInterface
|
||||
{
|
||||
/** @var User $user */
|
||||
return [
|
||||
'type' => 'user',
|
||||
'id' => $user->getId(),
|
||||
'username' => $user->getUsername()
|
||||
'username' => $user->getUsername(),
|
||||
'text' => $user->getUsername()
|
||||
];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user