PHP Class ApiPlatform\Core\Bridge\Symfony\Validator\EventListener\ValidationExceptionListener

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

Public Methods

Method Description
__construct ( Symfony\Component\Serializer\SerializerInterface $serializer, array $errorFormats )
onKernelException ( GetResponseForExceptionEvent $event ) Returns a list of violations normalized in the Hydra format.

Method Details

__construct() public method

public __construct ( Symfony\Component\Serializer\SerializerInterface $serializer, array $errorFormats )
$serializer Symfony\Component\Serializer\SerializerInterface
$errorFormats array

onKernelException() public method

Returns a list of violations normalized in the Hydra format.
public onKernelException ( GetResponseForExceptionEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent