-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathext_localconf.php
More file actions
28 lines (23 loc) · 1.03 KB
/
ext_localconf.php
File metadata and controls
28 lines (23 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
use Nextmotion\GoogleCloudStorageDriver\Driver\StorageDriver;
use Nextmotion\GoogleCloudStorageDriver\Index\ImageMetaDataExtractor;
use TYPO3\CMS\Core\Resource\Driver\DriverRegistry;
use TYPO3\CMS\Core\Resource\Index\ExtractorRegistry;
use TYPO3\CMS\Core\Utility\GeneralUtility;
if (!defined('TYPO3')) {
exit('Access denied.');
}
call_user_func(static function ($extensionKey): void {
$GLOBALS['TYPO3_CONF_VARS']['BE']['stylesheets'][$extensionKey] =
'EXT:google_cloud_storage_fal/Resources/Public/Css/Backend.css';
}, 'google_cloud_storage_fal');
/** @var DriverRegistry $driverRegistry */
$driverRegistry = GeneralUtility::makeInstance(DriverRegistry::class);
$driverRegistry->registerDriverClass(
StorageDriver::class,
'GoogleCloudStorageDriver',
'Google Cloud Storage',
'FILE:EXT:google_cloud_storage_fal/Configuration/FlexForms/GoogleCloudStorage.xml',
);
$extractorRegistry = GeneralUtility::makeInstance(ExtractorRegistry::class);
$extractorRegistry->registerExtractionService(ImageMetaDataExtractor::class);