Guides
Tutorials
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
}
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
request | Symfony\Component\HttpFoundation\Request |
array