PHP Class ApiPlatform\Core\Util\ErrorFormatGuesser

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

Public Methods

Method Description
guessErrorFormat ( Request $request, array $errorFormats ) : array Get the error format and its associated MIME type.

Private Methods

Method Description
__construct ( )

Method Details

guessErrorFormat() public static method

Get the error format and its associated MIME type.
public static guessErrorFormat ( Request $request, array $errorFormats ) : array
$request Symfony\Component\HttpFoundation\Request
$errorFormats array
return array