Guides
Tutorials
Guesses the error format to use.
class ApiPlatform\Util\ErrorFormatGuesser
{
public guessErrorFormat(Symfony\Component\HttpFoundation\Request $request, array $errorFormats): array
}
class ApiPlatform\Util\ErrorFormatGuesser
{
public guessErrorFormat(Symfony\Component\HttpFoundation\Request $request, array $errorFormats): array
}
Get the error format and its associated MIME type.
public guessErrorFormat(Symfony\Component\HttpFoundation\Request $request, array $errorFormats): array
public guessErrorFormat(Symfony\Component\HttpFoundation\Request $request, array $errorFormats): array
request | Symfony\Component\HttpFoundation\Request | |
errorFormats | array |
array