Project

General

Profile

Actions

Bug #70293

closed

Missing reference in "preprocessRequest" hook

Added by Markus Hölzle about 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2015-10-02
Due date:
% Done:

0%

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

Description

Hi,

I think the hook "$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/index_ts.php']['preprocessRequest']" should pass the reference of the calling object.

In \TYPO3\CMS\Frontend\Http\RequestHandler function handleRequest():

$hookParameters = array();
GeneralUtility::callUserFunction($hookFunction, $hookParameters, $hookParameters);

should be
$hookParameters = array();
GeneralUtility::callUserFunction($hookFunction, $hookParameters, $this);

The same issue is in \TYPO3\CMS\Frontend\Http\EidRequestHandler function handleRequest().
It would be great if the hook parameters are not empty... since TYPO3 7.5 we can pass the "ServerRequestInterface $request". What do you think?

Markus

Actions

Also available in: Atom PDF