Reference
C
Class

ApiPlatform\Symfony\EventListener\DeserializeListener

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
}

Methods

__construct

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)

Parameters

serializerSymfony\Component\Serializer\SerializerInterface
serializerContextBuilderApiPlatform\Serializer\SerializerContextBuilderInterface
resourceMetadataFactoryApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface
translatorSymfony\Contracts\Translation\TranslatorInterface

onKernelRequest

Deserializes the data sent in the requested format.

public onKernelRequest(Symfony\Component\HttpKernel\Event\RequestEvent $event): null
public onKernelRequest(Symfony\Component\HttpKernel\Event\RequestEvent $event): null

Parameters

eventSymfony\Component\HttpKernel\Event\RequestEvent

Returns

null

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop