Commit 6f454735 authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[BUGFIX] Better deprecation log in extbase controller action

When extbase controller action don't return a ResponseInterface,
a deprecation log is raised:

"Controller action TYPO3\CMS\Extbase\Mvc\Controller\ActionController:: does not return ..."

Using late static binding and proper action name resolving
changes this to a much more helpful message:

"Controller action TYPO3\CMS\Styleguide\Controller\StyleguideController->tabAction does not return ..."

Resolves: #93144
Related: #92784
Releases: master
Change-Id: Ife9acd9dcf9e076eea617c31e7720304c59db75a
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/67228


Tested-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent ae2be2af
......@@ -578,7 +578,7 @@ abstract class ActionController implements ControllerInterface
trigger_error(
sprintf(
'Controller action %s does not return an instance of %s which is deprecated.',
__CLASS__ . '::' . $this->{$this->actionMethodName},
static::class . '::' . $this->actionMethodName,
ResponseInterface::class
),
E_USER_DEPRECATED
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment