From 66ed9e10edf0f69d2741ac7f00aac4a0cd2f0944 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albrecht=20K=C3=B6hnlein?= Date: Wed, 5 Apr 2023 10:35:28 +0200 Subject: [PATCH] [BUGFIX] Register the driver via $GLOBALS (#36) --- ext_localconf.php | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/ext_localconf.php b/ext_localconf.php index 47adec7..0e8228b 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -4,14 +4,13 @@ die('Access denied.'); } -/** @var \TYPO3\CMS\Core\Resource\Driver\DriverRegistry $driverRegistry */ -$driverRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Resource\Driver\DriverRegistry::class); -$driverRegistry->registerDriverClass( - \B3N\AzureStorage\TYPO3\Driver\StorageDriver::class, - \B3N\AzureStorage\TYPO3\Driver\StorageDriver::class, - 'Azure Storage', - 'FILE:EXT:azurestorage/Configuration/FlexForms/AzureStorage.xml' -); +// register driver, see https://typo3.slack.com/archives/C03AM9R17/p1538658116000100 +$GLOBALS['TYPO3_CONF_VARS']['SYS']['fal']['registeredDrivers'][\B3N\AzureStorage\TYPO3\Driver\StorageDriver::class] = [ + 'class' => \B3N\AzureStorage\TYPO3\Driver\StorageDriver::class, + 'shortName' => \B3N\AzureStorage\TYPO3\Driver\StorageDriver::class, + 'label' => 'Azure Storage', + 'flexFormDS' => 'FILE:EXT:azurestorage/Configuration/FlexForms/AzureStorage.xml' +]; // Cache configuration, see http://wiki.typo3.org/Caching_Framework if (!isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['azurestorage'])