Guides
Tutorials
Updates the entity retrieved by the data provider with data contained in the request body.
class ApiPlatform\Symfony\EventListener\DeserializeListener
{
public __construct(Symfony\Component\Serializer\SerializerInterface $serializer, ApiPlatform\Serializer\SerializerContextBuilderInterface $serializerContextBuilder, null|ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, null|Symfony\Contracts\Translation\TranslatorInterface $translator)
public onKernelRequest(Symfony\Component\HttpKernel\Event\RequestEvent $event): null
}class ApiPlatform\Symfony\EventListener\DeserializeListener
{
public __construct(Symfony\Component\Serializer\SerializerInterface $serializer, ApiPlatform\Serializer\SerializerContextBuilderInterface $serializerContextBuilder, null|ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, null|Symfony\Contracts\Translation\TranslatorInterface $translator)
public onKernelRequest(Symfony\Component\HttpKernel\Event\RequestEvent $event): null
}public __construct(Symfony\Component\Serializer\SerializerInterface $serializer, ApiPlatform\Serializer\SerializerContextBuilderInterface $serializerContextBuilder, null|ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, null|Symfony\Contracts\Translation\TranslatorInterface $translator)public __construct(Symfony\Component\Serializer\SerializerInterface $serializer, ApiPlatform\Serializer\SerializerContextBuilderInterface $serializerContextBuilder, null|ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, null|Symfony\Contracts\Translation\TranslatorInterface $translator)| serializer | Symfony\Component\Serializer\SerializerInterface | |
| serializerContextBuilder | ApiPlatform\Serializer\SerializerContextBuilderInterface | |
| resourceMetadataFactory | ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface | |
| translator | Symfony\Contracts\Translation\TranslatorInterface |
Deserializes the data sent in the requested format.
public onKernelRequest(Symfony\Component\HttpKernel\Event\RequestEvent $event): nullpublic onKernelRequest(Symfony\Component\HttpKernel\Event\RequestEvent $event): null| event | Symfony\Component\HttpKernel\Event\RequestEvent |
null