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.
@Event("Symfony\\Component\\HttpKernel\\Event\\ViewEvent");
public const VIEW = 'kernel.view';