Deprecation: #94351 - ext:extbase StopActionException
See forge#94351
Description
To further prepare towards clean PSR-7 request / response handling in
Extbase, the Extbase internal exception
\TYPO3\
has been deprecated.
Impact
No deprecation is logged, but the
Stop
will be
removed in v12 as breaking change. Extension developers with Extbase
based controllers can prepare in v11 towards this.
Affected Installations
Extensions with Extbase controllers that throw
Stop
or
use methods
redirect
or
redirect
from Extbase
\TYPO3\
are affected.
Migration
As a goal, Extbase actions will always return a
\Psr\
in v12. v11 prepares towards this, but still throws the
Stop
in
redirect
. Developers should prepare towards this.
Example before:
public function fooAction()
{
$this->redirect('otherAction');
}
Example compatible with v10, v11 and v12 - IDE's and static code analyzers may complain in v10 and v11, though:
public function fooAction(): ResponseInterface
{
// A return is added!
return $this->redirect('otherAction');
}