Actions
Feature #78732
closedIntroduce signals in Application->run
Status:
Closed
Priority:
Could have
Assignee:
-
Category:
System/Bootstrap/Configuration
Target version:
-
Start date:
2016-11-17
Due date:
% Done:
0%
Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:
Description
TYPO3 could benefit from two new signals in Application->run method:
public function run(callable $execute = null) { // Signal one: PreApplication $this->bootstrap->handleRequest(\TYPO3\CMS\Core\Http\ServerRequestFactory::fromGlobals()); if ($execute !== null) { call_user_func($execute); } $this->bootstrap->shutdown(); // Signal two: PostApplication }
The two hooks would be ideal when implementing custom instrumentation with for example NewRelic - the two signals would allow integrating with such instrumentation completely outside TYPO3 request handling.
PS: Other signals considered for __construct on Application as well, to interact with TYPO3 bootstrapping and the Composer autoloader.
Actions