PHP Class ApiPlatform\Core\Util\RequestAttributesExtractor

Author: Kévin Dunglas ([email protected])
Show file Open project: api-platform/core Class Usage Examples

Public Methods

Method Description
extractAttributes ( Request $request ) : array Extracts resource class, operation name and format request attributes. Throws an exception if the request does not contain required attributes.

Private Methods

Method Description
__construct ( )

Method Details

extractAttributes() public static method

Extracts resource class, operation name and format request attributes. Throws an exception if the request does not contain required attributes.
public static extractAttributes ( Request $request ) : array
$request Symfony\Component\HttpFoundation\Request
return array