Symfony events: kernel.terminate reference
20 November 2022 (Updated 20 November 2022)
When is it dispatched?
Dispatched after the response has been sent (i.e., after handle()
has been executed). See here for the relevant source code.
Use cases
- Perform slow or complex tasks that don’t need to be completed to send an HTTP response (e.g., sending emails).
List event listeners
php bin/console debug:event-dispatcher kernel.terminate
- Symfony kernel events reference
- Symfony events: kernel.request reference
- Symfony events: kernel.controller reference
- Symfony events: kernel.controller_arguments reference
- Symfony events: kernel.view reference
- Symfony events: kernel.response reference
- Symfony events: kernel.finish_request reference
- Symfony events: kernel.terminate reference
- Symfony events: kernel.exception reference
Tagged:
Symfony
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment