Commit ce3cc4e8 authored by Kevin Ditscheid's avatar Kevin Ditscheid

[BUGFIX] Fix the Licensing service throwing warnings

parent e285bbd2
......@@ -30,6 +30,7 @@ use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use SGalinski\Lfeditor\Utility\ExtensionUtility;
use TYPO3\CMS\Core\Authentication\BackendUserAuthentication;
use TYPO3\CMS\Core\Http\NullResponse;
use TYPO3\CMS\Core\Utility\GeneralUtility;
/**
......@@ -104,7 +105,7 @@ class LicensingService {
* @return ResponseInterface
* @throws \InvalidArgumentException
*/
public function ajaxPing(ServerRequestInterface $request, ResponseInterface $response) {
public function ajaxPing(ServerRequestInterface $request, ResponseInterface $response = NULL) {
/** @var BackendUserAuthentication $backendUser */
$backendUser = $GLOBALS['BE_USER'];
$moduleKey = 'tools_beuser/index.php/user-LfeditorLfeditor_pinged';
......@@ -112,6 +113,11 @@ class LicensingService {
$backendUser->pushModuleData($moduleKey, TRUE);
self::ping();
}
if ($response === NULL) {
$response = new NullResponse();
}
return $response;
}
}
Markdown is supported
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