Properly deprecate insertModuleFunction "$classPath" parameter
To add submodules in existing modules (i.e. Web>Info or Web>Function) you add:
ExtensionManagementUtility::insertModuleFunction($name, $className, $classPath ..)
to your ext_tables.php. The $classPath is then loaded with "include_once" in the relevant module. This is of course old-school in times where we have auto-loading, and thus we need to properly deprecate this method of loading submodules in favor of auto-loading.
See #51471 for a live example (realurl) on how this can be changed to use auto-loading.
[TASK] Deprecate insertModuleFunction "$classPath" parameter
Deprecates the need to specify the $classPath when registering a submodule
with ExtensionManagementUtility::insertModuleFunction. Remove the
parameter's usage throughout the system extensions.
Also re-adds the removed include_once that were removed without proper
deprecation before (see #49992).
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring