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'
Copied!
final class MyEventListener {
public function __invoke(BootCompletedEvent $e): void
{
// do your magic
}
}
Copied!