TYPO3v11 CLI mode compatible check for environment
To be able to run in CLI mode (e.g. refindex update), the following lines should read:
CompatibilityService.php:39
return ($GLOBALS['TYPO3_REQUEST'] ?? null) instanceof ServerRequestInterface && ApplicationType::fromRequest($GLOBALS['TYPO3_REQUEST'])->isBackend();
CompatibilityService.php:53
return ($GLOBALS['TYPO3_REQUEST'] ?? null) instanceof ServerRequestInterface && ApplicationType::fromRequest($GLOBALS['TYPO3_REQUEST'])->isFrontend();
(with including the namespace of course: use Psr\Http\Message\ServerRequestInterface;
The provided code works. (tested with fal_securedownload -> fileDump)
PR here https://github.com/andersundsehr/aus_driver_amazon_s3/pull/97
@mrk131324 this should work with the current Master now.
@weakbit The current master contains multiple fixes already, wouldn't it time for a release, please? The last one was ~1 year ago
@Moongazer I released a new version on packagist. @Lagerregal Can you release a new TER version?