17 use Psr\Http\Message\ResponseInterface;
18 use Psr\Http\Message\ServerRequestInterface;
45 'Class AbstractModule is deprecated since TYPO3 v9 and will be removed with TYPO3 v10.0.'
46 .
' Instantiate ModuleTemplate yourself if needed and use routing registered in Routes.php.',
49 $this->moduleTemplate = GeneralUtility::makeInstance(ModuleTemplate::class);
71 $methodName =
$request->getQueryParams()[
'action'] ?:
'index';
72 if (!is_callable([$this, $methodName])) {
73 throw new \InvalidArgumentException(
74 'The method "' . $methodName .
'" is not callable within "' . static::class .
'".',
78 return $this->{$methodName}(
$request, $response);