The international conference on the API Platform Framework
Learn more about the event, register for the conference, and get ready for two days of inspiration, ideas, and knowledge-sharing with our incredible lineup of renowned specialists and advocates.
Register nowChooses the format to use according to the Accept header and supported formats.
class ApiPlatform\Symfony\EventListener\AddFormatListener
{
public __construct(Negotiation\Negotiator $negotiator, null|ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory, array $formats)
public onKernelRequest(Symfony\Component\HttpKernel\Event\RequestEvent $event): null
}
public __construct(Negotiation\Negotiator $negotiator, null|ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory, array $formats)
negotiator | Negotiation\Negotiator | |
resourceMetadataCollectionFactory | `ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface` | |
formats | array |
Sets the applicable format to the HttpFoundation Request.
public onKernelRequest(Symfony\Component\HttpKernel\Event\RequestEvent $event): null
event | Symfony\Component\HttpKernel\Event\RequestEvent |
null
Made with love by
Les-Tilleuls.coop can help you design and develop your APIs and web projects, and train your teams in API Platform, Symfony, Next.js, Kubernetes and a wide range of other technologies.
Learn more