1. 8.5.x vendor/symfony/http-kernel/KernelEvents.php KernelEvents::VIEW
  2. 8.0.x vendor/symfony/http-kernel/KernelEvents.php KernelEvents::VIEW
  3. 8.1.x vendor/symfony/http-kernel/KernelEvents.php KernelEvents::VIEW
  4. 8.2.x vendor/symfony/http-kernel/KernelEvents.php KernelEvents::VIEW
  5. 8.3.x vendor/symfony/http-kernel/KernelEvents.php KernelEvents::VIEW
  6. 8.4.x vendor/symfony/http-kernel/KernelEvents.php KernelEvents::VIEW
  7. 8.6.x vendor/symfony/http-kernel/KernelEvents.php KernelEvents::VIEW

The VIEW event occurs when the return value of a controller is not a Response instance.

This event allows you to create a response for the return value of the controller. The event listener method receives a Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent instance.

Related topics

File

vendor/symfony/http-kernel/KernelEvents.php, line 63

Class

KernelEvents
Contains all events thrown in the HttpKernel component.

Namespace

Symfony\Component\HttpKernel

Code

const VIEW = 'kernel.view';