Drop/replace the ProceduralCall class for hooks

Created on 1 May 2025, 16 days ago

Problem/Motivation

The ProceduralCall class is an artificial construct to allow procedural hook implementations to be in the same list as oop implementations. They also take care of include files for procedural implementations.

One strange thing here is that we have arrays [new ProceduralCall(...), $function] in a list of callables, when $function is not at all a method on the ProceduralCall object.

Another problem is we have to analyse the callables in ModuleHandler, and distinguish if the object is a ProceduralCall.

Steps to reproduce

Proposed resolution

Drop the ProceduralCall class.
Have the list contain a single string with the function name.
For include files just have a general list of files per hook.
Check if this works with EventDispatcher, otherwise postpone this after 🐛 HookCollectorPass registers event listeners but they do not follow the required calling convention Active when hooks no longer use the event system.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

📌 Task
Status

Active

Version

11.0 🔥

Component

base system

Created by

🇩🇪Germany donquixote

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024