Attention
TYPO3 v11 has reached end-of-life as of October 31th 2024 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 v11 here: TYPO3 ELTS.
BootCompletedEvent
New in version 11.4
The Boot
is fired on every request when TYPO3 has been
fully booted, right after all configuration files have been added.
This new event complements the AfterTcaCompilationEvent which is executed after TCA configuration has been assembled.
Use cases for this event include running extensions' code which needs to be executed at any time, and needs TYPO3's full configuration including all loaded extensions.
Example
Registration of the event in the Services.
:
MyVendor\MyPackage\Bootstrap\MyEventListener:
tags:
- name: event.listener
identifier: 'my-package/my-listener'
final class MyEventListener {
public function __invoke(BootCompletedEvent $e): void
{
// do your magic
}
}