Class 'TYPO3\CMS\Core\Http\JsonResponse' not found
RequireJsController uses the
JsonResponse class in TYPO3v8 which was added with TYPO3v9 however.
This must be rewritten to not break the BE login.
[BUGFIX] Use Json-based response for RequireJsController
This is a regression due to a very unfortunate
rebasing of a security backport which had the
exact code as changed here in the original change
which was tested.
The main reason is that JsonResponse is only
available in v9 or later.
Reviewed-by: Mathias Brodala <email@example.com>
Reviewed-by: Susanne Moog <firstname.lastname@example.org>
Tested-by: Susanne Moog <email@example.com>
Tested-by: TYPO3com <firstname.lastname@example.org>
Reviewed-by: Oliver Hader <email@example.com>
Tested-by: Oliver Hader <firstname.lastname@example.org>