Deprecation: #94272 - Application->run callback¶
See Issue #94272
Since the introduction of the
in Issue #67808 (TYPO3 v7), which serves as a wrapper for setting up the bootstrap and
calling the request, it was possible to run either the console, the frontend
or the backend by calling
run() on the corresponding Application class.
run() method also featured the possibility to provide a
as first argument. This was mainly introduced, since no proper solution for
sub requests existed at that time. Since Issue #83725, the callback is not
longer necessary as such functionality can be handled by a PSR-15
$execute argument of
has been deprecated and will be removed in v12.
\TYPO3\CMS\Core\Core\ApplicationInterface->run() with the
$execute set, triggers a PHP
All installations which manually call
while providing a callback as first argument. The extension scanner
will find those usages as weak match.
Instances with extensions calling
\TYPO3\CMS\Core\Core\ApplicationInterface->run() with a callback
as first argument need to be adapted. If possible use PSR-15 middlewares
Console commands do not feature PSR-15 middlewares. Therefore, the callback has to be replaced by separate chained post-processing commands.