Attention
TYPO3 v12 has reached end-of-life as of April 30th 2026 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v12 here: TYPO3 ELTS.
BootCompletedEvent
New in version 11.4
The PSR-14 event
\TYPO3\ is fired
on every request when TYPO3 has been fully booted, right after all configuration
files have been added.
This event complements the AfterTcaCompilationEvent which is executed after TCA configuration has been assembled.
Use cases for this event include running extension's code which needs to be executed at any time and needs TYPO3's full configuration including all loaded extensions.
Example
Registration of the event listener in the extension's Services.:
services:
# Place here the default dependency injection configuration
MyVendor\MyExtension\Bootstrap\EventListener\MyEventListener:
tags:
- name: event.listener
identifier: 'my-extension/boot-completed'
Read how to configure dependency injection in extensions.
An implementation of the event listener: