Feature: #95065 - New PSR-14 BootCompletedEvent
See forge#95065
Description
A new PSR-14 event \TYPO3\
has been added to TYPO3
Core. This event is fired on every request when TYPO3 has been
fully booted, right after all configuration files have been added.
This new Event complements the \TYPO3\
which
is executed after TCA configuration has been assembled.
Registration of the Event in your extensions' Services.
:
MyVendor\MyPackage\Bootstrap\MyEventListener:
tags:
- name: event.listener
identifier: 'my-package/my-listener'
Copied!
class MyEventListener {
public function __invoke(BootCompletedEvent $e): void
{
// do your magic
}
}
Copied!
Impact
Use cases for this event is to alter or to boot up extensions' code which needs to be executed at any time, and needs TYPO3's full configuration including all loaded extensions.