andersundsehr / aus_driver_amazon_s3

Provides a TYPO3 FAL driver for the Amazon Web Service S3
GNU Lesser General Public License v3.0
20 stars 39 forks source link

TYPO3v11 CLI mode compatible check for environment #96

Open mrk131324 opened 2 years ago

mrk131324 commented 2 years ago

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;

simouel commented 2 years ago

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

simouel commented 2 years ago

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

weakbit commented 1 year ago

@mrk131324 this should work with the current Master now.

Moongazer commented 9 months ago

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

weakbit commented 6 months ago

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