Reference
I
Interface

ApiPlatform\Serializer\SerializerContextBuilderInterface

Builds the context used by the Symfony Serializer.

interface ApiPlatform\Serializer\SerializerContextBuilderInterface
{
    public createFromRequest(Symfony\Component\HttpFoundation\Request $request, bool $normalization, null|array $extractedAttributes): array
}
interface ApiPlatform\Serializer\SerializerContextBuilderInterface
{
    public createFromRequest(Symfony\Component\HttpFoundation\Request $request, bool $normalization, null|array $extractedAttributes): array
}

Methods

createFromRequest

Creates a serialization context from a Request.

public createFromRequest(Symfony\Component\HttpFoundation\Request $request, bool $normalization, null|array $extractedAttributes): array
public createFromRequest(Symfony\Component\HttpFoundation\Request $request, bool $normalization, null|array $extractedAttributes): array

Parameters

requestSymfony\Component\HttpFoundation\Request
normalizationbool
extractedAttributesarray

Returns

array

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop