aus_driver_amazon_s3 icon indicating copy to clipboard operation
aus_driver_amazon_s3 copied to clipboard

TYPO3v11 CLI mode compatible check for environment

Open mrk131324 opened this issue 3 years ago • 5 comments

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;

mrk131324 avatar Apr 11 '22 05:04 mrk131324

The provided code works. (tested with fal_securedownload -> fileDump)

simouel avatar May 18 '22 16:05 simouel

PR here https://github.com/andersundsehr/aus_driver_amazon_s3/pull/97

simouel avatar May 18 '22 17:05 simouel

@mrk131324 this should work with the current Master now.

weakbit avatar May 25 '23 16:05 weakbit

@weakbit The current master contains multiple fixes already, wouldn't it time for a release, please? The last one was ~1 year ago

Moongazer avatar Sep 12 '23 11:09 Moongazer

@Moongazer I released a new version on packagist. @Lagerregal Can you release a new TER version?

weakbit avatar Jan 04 '24 10:01 weakbit