KernelEvents
in package
Contains all events thrown in the HttpKernel component.
Tags
Table of Contents
- ALIASES = [SymfonyComponentHttpKernelEventControllerArgumentsEvent::class => self::CONTROLLER_ARGUMENTS, SymfonyComponentHttpKernelEventControllerEvent::class => self::CONTROLLER, SymfonyComponentHttpKernelEventResponseEvent::class => self::RESPONSE, SymfonyComponentHttpKernelEventFinishRequestEvent::class => self::FINISH_REQUEST, SymfonyComponentHttpKernelEventRequestEvent::class => self::REQUEST, SymfonyComponentHttpKernelEventViewEvent::class => self::VIEW, SymfonyComponentHttpKernelEventExceptionEvent::class => self::EXCEPTION, SymfonyComponentHttpKernelEventTerminateEvent::class => self::TERMINATE]
- Event aliases.
- CONTROLLER = 'kernel.controller'
- The CONTROLLER event occurs once a controller was found for handling a request.
- CONTROLLER_ARGUMENTS = 'kernel.controller_arguments'
- The CONTROLLER_ARGUMENTS event occurs once controller arguments have been resolved.
- EXCEPTION = 'kernel.exception'
- The EXCEPTION event occurs when an uncaught exception appears.
- FINISH_REQUEST = 'kernel.finish_request'
- The FINISH_REQUEST event occurs when a response was generated for a request.
- REQUEST = 'kernel.request'
- The REQUEST event occurs at the very beginning of request dispatching.
- RESPONSE = 'kernel.response'
- The RESPONSE event occurs once a response was created for replying to a request.
- TERMINATE = 'kernel.terminate'
- The TERMINATE event occurs once a response was sent.
- VIEW = 'kernel.view'
- The VIEW event occurs when the return value of a controller is not a Response instance.
Constants
ALIASES
Event aliases.
public
mixed
ALIASES
= [SymfonyComponentHttpKernelEventControllerArgumentsEvent::class => self::CONTROLLER_ARGUMENTS, SymfonyComponentHttpKernelEventControllerEvent::class => self::CONTROLLER, SymfonyComponentHttpKernelEventResponseEvent::class => self::RESPONSE, SymfonyComponentHttpKernelEventFinishRequestEvent::class => self::FINISH_REQUEST, SymfonyComponentHttpKernelEventRequestEvent::class => self::REQUEST, SymfonyComponentHttpKernelEventViewEvent::class => self::VIEW, SymfonyComponentHttpKernelEventExceptionEvent::class => self::EXCEPTION, SymfonyComponentHttpKernelEventTerminateEvent::class => self::TERMINATE]
These aliases can be consumed by RegisterListenersPass.
CONTROLLER
The CONTROLLER event occurs once a controller was found for handling a request.
public
mixed
CONTROLLER
= 'kernel.controller'
This event allows you to change the controller that will handle the request.
Tags
CONTROLLER_ARGUMENTS
The CONTROLLER_ARGUMENTS event occurs once controller arguments have been resolved.
public
mixed
CONTROLLER_ARGUMENTS
= 'kernel.controller_arguments'
This event allows you to change the arguments that will be passed to the controller.
Tags
EXCEPTION
The EXCEPTION event occurs when an uncaught exception appears.
public
mixed
EXCEPTION
= 'kernel.exception'
This event allows you to create a response for a thrown exception or to modify the thrown exception.
Tags
FINISH_REQUEST
The FINISH_REQUEST event occurs when a response was generated for a request.
public
mixed
FINISH_REQUEST
= 'kernel.finish_request'
This event allows you to reset the global and environmental state of the application, when it was changed during the request.
Tags
REQUEST
The REQUEST event occurs at the very beginning of request dispatching.
public
mixed
REQUEST
= 'kernel.request'
This event allows you to create a response for a request before any other code in the framework is executed.
Tags
RESPONSE
The RESPONSE event occurs once a response was created for replying to a request.
public
mixed
RESPONSE
= 'kernel.response'
This event allows you to modify or replace the response that will be replied.
Tags
TERMINATE
The TERMINATE event occurs once a response was sent.
public
mixed
TERMINATE
= 'kernel.terminate'
This event allows you to run expensive post-response jobs.
Tags
VIEW
The VIEW event occurs when the return value of a controller is not a Response instance.
public
mixed
VIEW
= 'kernel.view'
This event allows you to create a response for the return value of the controller.