Issue Bug Rejected

#95962BootCompletedEvent unsuitable to replace extTablesInclusion-PostProcessing hook

Oliver Eglseder 11/12/21, 09:43 updated 11/11/22, 16:08

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.

Reviews 1