References ValidationExceptionListener
Reference
C
Class

ApiPlatform\Symfony\Validator\EventListener\ValidationExceptionListener

Handles validation errors. TODO: remove this class.

class ApiPlatform\Symfony\Validator\EventListener\ValidationExceptionListener
{
    public __construct(Symfony\Component\Serializer\SerializerInterface $serializer, array $errorFormats, array $exceptionToStatus, null|ApiPlatform\Symfony\EventListener\ExceptionListener $exceptionListener)
    public onKernelException(Symfony\Component\HttpKernel\Event\ExceptionEvent $event): null
}

Methods

__construct

public __construct(Symfony\Component\Serializer\SerializerInterface $serializer, array $errorFormats, array $exceptionToStatus, null|ApiPlatform\Symfony\EventListener\ExceptionListener $exceptionListener)

Parameters

serializerSymfony\Component\Serializer\SerializerInterface
errorFormatsarray
exceptionToStatusarray
exceptionListener`ApiPlatform\Symfony\EventListener\ExceptionListener`

onKernelException

Returns a list of violations normalized in the Hydra format.

public onKernelException(Symfony\Component\HttpKernel\Event\ExceptionEvent $event): null

Parameters

eventSymfony\Component\HttpKernel\Event\ExceptionEvent

Returns

null

Made with love by

Les-Tilleuls.coop can help you design and develop your APIs and web projects, and train your teams in API Platform, Symfony, Next.js, Kubernetes and a wide range of other technologies.

Learn more

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop