Guides
Tutorials
Handles validation errors.
class ApiPlatform\Symfony\Validator\EventListener\ValidationExceptionListener
{
public __construct(Symfony\Component\Serializer\SerializerInterface $serializer, array $errorFormats, array $exceptionToStatus)
public onKernelException(Symfony\Component\HttpKernel\Event\ExceptionEvent $event): null
}
class ApiPlatform\Symfony\Validator\EventListener\ValidationExceptionListener
{
public __construct(Symfony\Component\Serializer\SerializerInterface $serializer, array $errorFormats, array $exceptionToStatus)
public onKernelException(Symfony\Component\HttpKernel\Event\ExceptionEvent $event): null
}
public __construct(Symfony\Component\Serializer\SerializerInterface $serializer, array $errorFormats, array $exceptionToStatus)
public __construct(Symfony\Component\Serializer\SerializerInterface $serializer, array $errorFormats, array $exceptionToStatus)
serializer | Symfony\Component\Serializer\SerializerInterface | |
errorFormats | array | |
exceptionToStatus | array |
Returns a list of violations normalized in the Hydra format.
public onKernelException(Symfony\Component\HttpKernel\Event\ExceptionEvent $event): null
public onKernelException(Symfony\Component\HttpKernel\Event\ExceptionEvent $event): null
event | Symfony\Component\HttpKernel\Event\ExceptionEvent |
null