Project

General

Profile

Actions

Bug #95962

closed

BootCompletedEvent unsuitable to replace extTablesInclusion-PostProcessing hook

Added by Oliver Eglseder over 2 years ago. Updated over 1 year ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Backend API
Start date:
2021-11-12
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
Yes
Sprint Focus:
Remote Sprint

Description

Discussing following deprecation: Deprecation-95065-HookExtTablesInclusion-PostProcessing.rst

There is a huge difference between the hook and the event. The hooks use case was to run some code after the ext_tables.php were included (you know, the "PostProcessing"-part of the hook's name). The new event is dispatched before the ext_tables.php files were included.
This makes the event ultimately unsuitable to replace the hook. Also, no other event will be dispatched after loding those files, so there is no chance to get any equivalent chance to run code, except the registration of your own Middleware which dispatches an event or runs the code, which seems to bet of an overkill. (Also, each extension author would have to do it own their own).

To actually replace the removed hook with an coequal event, a new event has to be dispatched right after the call to Bootstrap::loadExtTables() in BackendRouteInitialization.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #95065: Add BootCompletedEventClosedBenni Mack2021-09-01

Actions
Actions

Also available in: Atom PDF