Issue Feature Closed

#78732Introduce signals in Application->run

Claus Due 11/17/16, 11:45 updated 12/21/21, 16:55

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.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.