Project

General

Profile

Actions

Bug #52594

closed

Properly deprecate insertModuleFunction "$classPath" parameter

Added by Ernesto Baschny about 11 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Backend API
Target version:
-
Start date:
2013-10-07
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

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.

Actions

Also available in: Atom PDF