forked from mia3/crossmedia_fourallportal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
93 lines (82 loc) · 5.53 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?php
declare(strict_types=1);
$conf = $_EXTCONF ?? null;
defined('TYPO3') or die('Access denied.');
use Crossmedia\Fourallportal\Controller\EventController;
use Crossmedia\Fourallportal\Controller\ServerController;
use Crossmedia\Fourallportal\Log\SystemLogDatabaseWriter;
use Crossmedia\Fourallportal\Mapping\FalMapping;
use Crossmedia\Fourallportal\Mapping\MappingRegister;
use Psr\Log\LogLevel as LogLevelAlias;
use TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend;
use TYPO3\CMS\Core\Cache\Frontend\PhpFrontend;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
//$backendConfiguration = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
// \TYPO3\CMS\Core\Configuration\ExtensionConfiguration::class
//)->get('fourallportal');
if (!isset($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['fourallportal'])) {
$GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['fourallportal'] = [
'clientConnectTimeout' => 10,
'clientTransferTimeout' => 60,
'eventDeferralTTL' => 86400,
];
}
// register database logs writer
$GLOBALS['TYPO3_CONF_VARS']['LOG']['Crossmedia']['Fourallportal']['writerConfiguration'] = [
LogLevelAlias::WARNING => [
SystemLogDatabaseWriter::class => [],
],
];
// TODO: should use Symfony
//$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][$_EXTKEY] = \Crossmedia\Fourallportal\Command\FourallportalCommandController::class;
MappingRegister::registerMapping(
FalMapping::class,
[
'xmp.cm_image.orientation' => false, // ignored for now
'xmp.cm_image.width_mm' => false, // ignored for now
'xmp.cm_image.height_mm' => false, // ignored for now
'xmp.cm_image.has_clippingpath' => false, // ignored for now
'xmp.cm_image.colorprofile' => false, // ignored for now
'xmp.cm_image.colordepth' => false, // ignored for now
'xmp.cm_image.colorspace' => false, // ignored for now
'xmp.cm_image.resolution_dpi' => false, // ignored for now
'xmp.cm_image.has_alpha' => false, // ignored for now,
'standardtest_image_ceexternalid' => false, // Ignored; no connector exists for "standardtest" which is required by this relation
'idnt_mkp_txt_file_id' => false, // Ignored; no connector exists for "idnt_mkp_txt" which is required by this relation
'succ_stories_main_image' => false, // Ignored; no connector exists for "succ_stories" which is required by this relation
'kits_option_option_kit_downloads' => false, // Ignored; no connector exists for "kits_option" which is required by this relation
'data_owner_user' => false, // Ignored; no connector exists for "contact" which is required by this relation
'usa_his_ass_data_id' => false, // Ignored; no connector exists for "contact" which is required by this relation
'product_tech_general_image' => false, // Ignored; no connector exists for "product_tech" which is required by this relation
'kits_option_main_image' => false, // Ignored; no connector exists for "kits_option" which is required by this relation
'data_created_by' => false, // Ignored; no connector exists for "contact" which is required by this relation
'product_tech_main_image' => false, // Ignored; no connector exists for "product_tech" which is required by this relation
'product_tech_learn_more_image' => false, // Ignored; no connector exists for "product_tech" which is required by this relation
'standardtest_text_ceexternalid' => false, // Ignored; no connector exists for "standardtest" which is required by this relation
'hedgehog_main_image' => false, // Ignored; no connector exists for "hedgehog" which is required by this relation
'data_mod_by' => false, // Ignored; no connector exists for "contact" which is required by this relation
'kits_option_option_kit_main_videos' => false, // Ignored; no connector exists for "kits_option" which is required by this relation
'data_owner_role' => false, // Ignored; no connector exists for "ce_role" which is required by this relation
'standardtest_reference_ceexternalid' => false, // Ignored; no connector exists for "standardtest" which is required by this relation
'product_tech_assistance_image' => false, // Ignored; no connector exists for "product_tech" which is required by this relation
'product_tech_availability_image' => false, // Ignored; no connector exists for "product_tech" which is required by this relation
'product_main_image' => false, // Ignored; requires custom property (CEExternalId w/o relatedModule)
'product_background_image' => false, // Ignored; requires custom property (CEExternalId w/o relatedModule)
'product_cat_product_cat_media' => false, // Ignored; requires custom property (CEExternalId w/o relatedModule)
'product_cat_main_image' => false, // Ignored; requires custom property (CEExternalId w/o relatedModule)
'product_main_video' => false, // Ignored; requires custom property (CEExternalId w/o relatedModule)
]
);
//if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['fourallportal_classes'])) {
// $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['fourallportal_classes'] = array(
// 'frontend' => PhpFrontend::class,
// 'backend' => SimpleFileBackend::class,
// 'options' => [
// 'defaultLifetime' => 9999999999, // Entries in this cache have extremely long life and won't auto-expire
// ],
// );
//}
ExtensionUtility::configurePlugin('Crossmedia.Fourallportal', 'module', [
EventController::class => ['index', 'check', 'reset', 'execute', 'sync'],
ServerController::class => ['index', 'check', 'disable', 'enable', 'delete', 'restartSynchronisation', 'module']
]);