forked from evoWeb/sf_register
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
executable file
·70 lines (57 loc) · 2.37 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
66
67
68
69
70
<?php
defined('TYPO3_MODE') or die();
/** @noinspection PhpUndefinedVariableInspection */
$extensionConfiguration = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY]);
if (TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('realurl')
&& (
!isset($extensionConfiguration['setRealurlConfigByDefault'])
|| $extensionConfiguration['setRealurlConfigByDefault'] == 1
)
) {
/** @noinspection PhpIncludeInspection */
require_once(
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) .
'Configuration/Realurl/realurl_conf.php'
);
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Evoweb.' . $_EXTKEY,
'Form',
array(
'FeuserCreate' => 'form, preview, proxy, save, confirm, accept, decline, refuse, removeImage',
'FeuserEdit' => 'form, preview, proxy, save, confirm, accept, removeImage',
'FeuserPassword' => 'form, save',
),
array(
'FeuserCreate' => 'form, preview, proxy, save, confirm, accept, decline, refuse, removeImage',
'FeuserEdit' => 'form, preview, proxy, save, confirm, accept, removeImage',
'FeuserPassword' => 'form, save',
)
);
$TYPO3_CONF_VARS['FE']['eID_include']['sf_register'] = 'EXT:sf_register/Classes/Api/Ajax.php';
define('SFREGISTERCACHEIDENTIFIER', 'cache_' . $_EXTKEY . '_extending');
// Register cache sf_register
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][SFREGISTERCACHEIDENTIFIER] = array(
'frontend' => \TYPO3\CMS\Core\Cache\Frontend\PhpFrontend::class,
'backend' => \TYPO3\CMS\Core\Cache\Backend\FileBackend::class,
'options' => array(),
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerTypeConverter(
\Evoweb\SfRegister\Property\TypeConverter\FrontendUserConverter::class
);
if (TYPO3_MODE === 'FE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
/**
* Signal slot dispatcher
*
* @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher
*/
$signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class
);
$signalSlotDispatcher->connect(
\Evoweb\SfRegister\Controller\FeuserController::class,
'initializeAction',
\Evoweb\SfRegister\Signal\FeuserControllerSignal::class,
'initializeAction'
);
}