-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathext_localconf.php
44 lines (37 loc) · 1.66 KB
/
ext_localconf.php
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/*
* This file is part of the package t3g/file_variants.
*
* For the full copyright and license information, please read the
* LICENSE file that was distributed with this source code.
*/
use T3G\AgencyPack\FileVariants\DataHandler\DataHandlerHook;
use T3G\AgencyPack\FileVariants\FormEngine\FileVariantInfoElement;
use T3G\AgencyPack\FileVariants\FormEngine\FieldWizard\FileVariantsOverviewWizard;
use T3G\AgencyPack\FileVariants\Updates\MetaDataRecordsUpdateWizard;
/*
* This file is part of the package t3g/file_variants.
*
* For the full copyright and license information, please read the
* LICENSE file that was distributed with this source code.
*/
if (!defined('TYPO3')) {
die('Access denied!');
}
// NEVER! use namespaces or use statements in this file!
call_user_func(function () {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass']['file_variants'] = DataHandlerHook::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['file_variants'] = DataHandlerHook::class;
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1489747688] = [
'nodeName' => 'fileInfo',
'priority' => 30,
'class' => FileVariantInfoElement::class,
];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1494415118] = [
'nodeName' => 'FileVariantsOverviewWizard',
'priority' => 40,
'class' => FileVariantsOverviewWizard::class,
];
// Upgrade Wizard
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update'][MetaDataRecordsUpdateWizard::class] = MetaDataRecordsUpdateWizard::class;
});