Skip to content

Commit

Permalink
[BUGFIX] Register the driver via $GLOBALS (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
koehnlein authored Apr 5, 2023
1 parent 51d6559 commit 66ed9e1
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand Down

0 comments on commit 66ed9e1

Please sign in to comment.