forked from lochmueller/calendarize
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
82 lines (69 loc) · 3.32 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
<?php
/**
* General ext_localconf file.
*/
if (!\defined('TYPO3_MODE')) {
die('Access denied.');
}
\HDNET\Autoloader\Loader::extLocalconf('HDNET', 'calendarize', \HDNET\Calendarize\Register::getDefaultAutoloader());
if (!(bool) \HDNET\Calendarize\Utility\ConfigurationUtility::get('disableDefaultEvent')) {
\HDNET\Calendarize\Register::extLocalconf(\HDNET\Calendarize\Register::getDefaultCalendarizeConfiguration());
/** @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher */
$signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
$signalSlotDispatcher->connect(
\HDNET\Calendarize\Command\ImportCommandController::class,
'importCommand',
\HDNET\Calendarize\Slots\EventImport::class,
'importCommand'
);
$signalSlotDispatcher->connect(
\HDNET\Calendarize\Controller\BookingController::class,
'bookingAction',
\HDNET\Calendarize\Slots\BookingCountries::class,
'bookingSlot'
);
$signalSlotDispatcher->connect(
\HDNET\Calendarize\Controller\BookingController::class,
'sendAction',
\HDNET\Calendarize\Slots\BookingCountries::class,
'sendSlot'
);
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'HDNET.calendarize',
'Calendar',
[
'Calendar' => 'list,past,latest,year,quater,month,week,day,detail,search,result,single,shortcut',
'Booking' => 'booking,send',
],
[
'Calendar' => 'search,result',
'Booking' => 'booking,send',
]
);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update'][\HDNET\Calendarize\Updates\CalMigrationUpdate::class] = \HDNET\Calendarize\Updates\CalMigrationUpdate::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update'][\HDNET\Calendarize\Updates\NewIncludeExcludeStructureUpdate::class] = \HDNET\Calendarize\Updates\NewIncludeExcludeStructureUpdate::class;
$GLOBALS['TYPO3_CONF_VARS']['FE']['typolinkBuilder']['record'] = \HDNET\Calendarize\Typolink\DatabaseRecordLinkBuilder::class;
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:calendarize/Configuration/TsConfig/ContentElementWizard.txt">');
$icons = [
'ext-calendarize-wizard-icon' => 'Resources/Public/Icons/Extension.svg',
];
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
foreach ($icons as $identifier => $path) {
$iconRegistry->registerIcon(
$identifier,
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:calendarize/' . $path]
);
}
if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('google_services')) {
\FRUIT\GoogleServices\Service\SitemapProvider::addProvider(\HDNET\Calendarize\Service\SitemapProvider\Events::class);
}
if (class_exists(\TYPO3\CMS\Core\Routing\Aspect\PersistedPatternMapper::class)) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['routing']['aspects']['EventMapper'] = \HDNET\Calendarize\Routing\Aspect\EventMapper::class;
}
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1591803668] = [
'nodeName' => 'calendarizeInfoElement',
'priority' => 40,
'class' => \HDNET\Calendarize\Form\Element\CalendarizeInfoElement::class,
];