Reference
C
Class

ApiPlatform\Symfony\EventListener\RespondListener

Builds the response object.

class ApiPlatform\Symfony\EventListener\RespondListener
{
    public __construct(null|ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, null|ApiPlatform\Api\IriConverterInterface $iriConverter)
    public onKernelView(Symfony\Component\HttpKernel\Event\ViewEvent $event): null
}
class ApiPlatform\Symfony\EventListener\RespondListener
{
    public __construct(null|ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, null|ApiPlatform\Api\IriConverterInterface $iriConverter)
    public onKernelView(Symfony\Component\HttpKernel\Event\ViewEvent $event): null
}

Methods

__construct

public __construct(null|ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, null|ApiPlatform\Api\IriConverterInterface $iriConverter)
public __construct(null|ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, null|ApiPlatform\Api\IriConverterInterface $iriConverter)

Parameters

resourceMetadataFactoryApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface
iriConverterApiPlatform\Api\IriConverterInterface

onKernelView

Creates a Response to send to the client according to the requested format.

public onKernelView(Symfony\Component\HttpKernel\Event\ViewEvent $event): null
public onKernelView(Symfony\Component\HttpKernel\Event\ViewEvent $event): null

Parameters

eventSymfony\Component\HttpKernel\Event\ViewEvent

Returns

null

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop