Reference
C
Class

ApiPlatform\Util\RequestAttributesExtractor

Extracts data used by the library form a Request instance.

class ApiPlatform\Util\RequestAttributesExtractor
{
    public extractAttributes(Symfony\Component\HttpFoundation\Request $request): array
}
class ApiPlatform\Util\RequestAttributesExtractor
{
    public extractAttributes(Symfony\Component\HttpFoundation\Request $request): array
}

Methods

extractAttributes

Extracts resource class, operation name and format request attributes. Returns an empty array if the request does not contain required attributes.

public extractAttributes(Symfony\Component\HttpFoundation\Request $request): array
public extractAttributes(Symfony\Component\HttpFoundation\Request $request): array

Parameters

requestSymfony\Component\HttpFoundation\Request

Returns

array

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop