-
Notifications
You must be signed in to change notification settings - Fork 6
/
ext_localconf.php
31 lines (24 loc) · 1.6 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
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] = 'CIC\Cicbase\Command\ExampleCommandController';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] = 'CIC\Cicbase\Command\MigrationCommandController';
#$signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('Tx_Extbase_Object_Manager')->get('TYPO3\CMS\Extbase\SignalSlot\Dispatcher');
#$signalSlotDispatcher->connect('Controller', 'ProcessUpload', 'CIC\Cicbase\Factory\FileFactory', 'HandleProcessUploadSignal', TRUE);
// TODO: Caching config should be updated to 4.6.x methods.
// If cache is not already defined, define it
if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cicbase_cache'])) {
$TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['cicbase_cache'] = array();
}
if (\TYPO3\CMS\Core\Utility\GeneralUtility::compat_version('6')) {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerTypeConverter('CIC\Cicbase\Property\TypeConverter\FileReferenceConverter');
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerTypeConverter('CIC\Cicbase\Property\TypeConverter\File');
}
if ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cicbase']['enableSQLLogging']) {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_db.php']['queryProcessors'][] = 'CIC\Cicbase\Persistence\SQLLogger';
}
if (\TYPO3\CMS\Core\Utility\GeneralUtility::compat_version('6')) {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerTypeConverter('CIC\Cicbase\Property\TypeConverter\ObjectStorageConverter');
}
?>