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
}
public __construct(Symfony\Component\Serializer\SerializerInterface $serializer, array $errorFormats, array $exceptionToStatus, null|ApiPlatform\Symfony\EventListener\ExceptionListener $exceptionListener)
serializer | Symfony\Component\Serializer\SerializerInterface | |
errorFormats | array | |
exceptionToStatus | array | |
exceptionListener | `ApiPlatform\Symfony\EventListener\ExceptionListener` |
Returns a list of violations normalized in the Hydra format.
public onKernelException(Symfony\Component\HttpKernel\Event\ExceptionEvent $event): null
event | Symfony\Component\HttpKernel\Event\ExceptionEvent |
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