References ExceptionListener
Reference
C
Class

ApiPlatform\Symfony\EventListener\ExceptionListener

Handles requests errors.

class ApiPlatform\Symfony\EventListener\ExceptionListener
{
    public __construct(Symfony\Component\HttpKernel\EventListener\ErrorListener $errorListener, bool $handleSymfonyErrors)
    public onKernelException(Symfony\Component\HttpKernel\Event\ExceptionEvent $event): null
}

Properties

handleSymfonyErrors

bool $handleSymfonyErrors

Methods

__construct

public __construct(Symfony\Component\HttpKernel\EventListener\ErrorListener $errorListener, bool $handleSymfonyErrors)

Parameters

errorListenerSymfony\Component\HttpKernel\EventListener\ErrorListener
handleSymfonyErrorsbool

onKernelException

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