forked from WapplerSystems/form_extended
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
66 lines (57 loc) · 2.1 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
use TYPO3\CMS\Core\Configuration\ExtensionConfiguration;
use TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider;
use TYPO3\CMS\Core\Imaging\IconRegistry;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
use WapplerSystems\FormExtended\Controller\DoubleOptInController;
ExtensionUtility::configurePlugin(
'form_extended',
'DoubleOptIn',
[
DoubleOptInController::class => 'validation'
],
[
DoubleOptInController::class => 'validation'
]
);
$iconRegistry = GeneralUtility::makeInstance(
IconRegistry::class
);
$iconRegistry->registerIcon(
'plugin-formextended',
SvgIconProvider::class,
['source' => 'EXT:form_extended/Resources/Public/Icons/PluginDoubleOptIn.svg']
);
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][TYPO3\CMS\Form\Mvc\Property\TypeConverter\UploadedFileReferenceConverter::class] = [
'className' => WapplerSystems\FormExtended\Mvc\Property\TypeConverter\UploadedFileReferenceConverter::class
];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][TYPO3\CMS\Backend\Form\FormDataProvider\SiteTcaInline::class] = [
'className' => WapplerSystems\FormExtended\Form\FormDataProvider\SiteTcaInline::class
];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][TYPO3\CMS\Backend\Form\FormDataProvider\SiteDatabaseEditRow::class] = [
'className' => WapplerSystems\FormExtended\Form\FormDataProvider\SiteDatabaseEditRow::class
];
ExtensionManagementUtility::addTypoScriptSetup(
'module.tx_form {
settings {
yamlConfigurations {
321 = EXT:form_extended/Configuration/Yaml/FormSetup.yaml
}
}
}'
);
$featureSiteEmail = GeneralUtility::makeInstance(ExtensionConfiguration::class)
->get('form_extended', 'featureSiteEmail');
if ($featureSiteEmail) {
ExtensionManagementUtility::addTypoScriptSetup(
'module.tx_form {
settings {
yamlConfigurations {
322 = EXT:form_extended/Configuration/Yaml/Features/SiteEmail/Feature.yaml
}
}
}'
);
}