-
Notifications
You must be signed in to change notification settings - Fork 653
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Deprecate eID registration with a script to a file
Resolves: #85646 Releases: master Change-Id: Ib8d550acb922c02c240f09898e4a354708a729b7 Reviewed-on: https://review.typo3.org/57683 Reviewed-by: Markus Klein <markus.klein@typo3.org> Tested-by: Markus Klein <markus.klein@typo3.org> Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
- Loading branch information
Showing
2 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
...entation/Changelog/master/Deprecation-85646-DeprecateEIDImplementedAsScript.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
.. include:: ../../Includes.txt | ||
|
||
========================================================= | ||
Deprecation: #85646 - Deprecate eID implemented as script | ||
========================================================= | ||
|
||
See :issue:`85646` | ||
|
||
Description | ||
=========== | ||
|
||
Calling a frontend eID as a direct script call has been deprecated. | ||
|
||
Setting a PHP eID include like this logs deprecation warnings:: | ||
|
||
$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['myEid'] = 'EXT:myExt/Resources/Php/MyAjax.php'; | ||
|
||
This is not valid anymore. Instead, a class / method combination should be used:: | ||
|
||
$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['myEid'] = \MyVendor\MyExt\Controller\MyEidController::class . '::myMethod'; | ||
|
||
The main difference is that a script call does not execute code if calling :php:`require()` on | ||
it directly anymore, but needs a proper registration including an entry method to be called. | ||
This increases encapsulation and security. | ||
|
||
Impact | ||
====== | ||
|
||
eIDs which are registered with a direct script includes log a deprecation message. | ||
|
||
|
||
Affected Installations | ||
====================== | ||
|
||
3rd party extensions which implement eIDs with a script to a file instead of | ||
a class->method combination. | ||
|
||
|
||
Migration | ||
========= | ||
|
||
Register eID with a class::method syntax like :php:`\TYPO3\CMS\Frontend\MyClass::mymethod` instead. | ||
|
||
.. index:: Frontend, NotScanned |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters