Guides
Tutorials
Builds the context used by the Symfony Serializer.
class ApiPlatform\Serializer\SerializerFilterContextBuilder implements `<a href="/docs/reference/Serializer/SerializerContextBuilderInterface">ApiPlatform\Serializer\SerializerContextBuilderInterface</a>`
{
public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory, Psr\Container\ContainerInterface $filterLocator, ApiPlatform\Serializer\SerializerContextBuilderInterface $decorated)
public createFromRequest(Symfony\Component\HttpFoundation\Request $request, bool $normalization, null|array $attributes): array
}
class ApiPlatform\Serializer\SerializerFilterContextBuilder implements `<a href="/docs/reference/Serializer/SerializerContextBuilderInterface">ApiPlatform\Serializer\SerializerContextBuilderInterface</a>`
{
public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory, Psr\Container\ContainerInterface $filterLocator, ApiPlatform\Serializer\SerializerContextBuilderInterface $decorated)
public createFromRequest(Symfony\Component\HttpFoundation\Request $request, bool $normalization, null|array $attributes): array
}
public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory, Psr\Container\ContainerInterface $filterLocator, ApiPlatform\Serializer\SerializerContextBuilderInterface $decorated)
public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory, Psr\Container\ContainerInterface $filterLocator, ApiPlatform\Serializer\SerializerContextBuilderInterface $decorated)
resourceMetadataCollectionFactory | ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface | |
filterLocator | Psr\Container\ContainerInterface | |
decorated | ApiPlatform\Serializer\SerializerContextBuilderInterface |
Creates a serialization context from a Request.
public createFromRequest(Symfony\Component\HttpFoundation\Request $request, bool $normalization, null|array $attributes): array
public createFromRequest(Symfony\Component\HttpFoundation\Request $request, bool $normalization, null|array $attributes): array
request | Symfony\Component\HttpFoundation\Request | |
normalization | bool | |
attributes | array |
array