2019-07-18 13:44:19 +02:00
|
|
|
<?php
|
2021-01-07 08:50:43 +01:00
|
|
|
|
2021-01-07 08:47:15 +01:00
|
|
|
defined('TYPO3') || die('Access denied.');
|
2019-07-18 13:44:19 +02:00
|
|
|
|
2021-06-14 16:08:43 +02:00
|
|
|
call_user_func(function () {
|
|
|
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
|
|
|
|
'Events',
|
|
|
|
'DateSearch',
|
|
|
|
[\Wrm\Events\Controller\DateController::class => 'search'],
|
|
|
|
[\Wrm\Events\Controller\DateController::class => 'search']
|
|
|
|
);
|
|
|
|
|
|
|
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
|
|
|
|
'Events',
|
|
|
|
'DateList',
|
|
|
|
[\Wrm\Events\Controller\DateController::class => 'list'],
|
|
|
|
[\Wrm\Events\Controller\DateController::class => 'list']
|
|
|
|
);
|
|
|
|
|
|
|
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
|
|
|
|
'Events',
|
|
|
|
'DateShow',
|
|
|
|
[\Wrm\Events\Controller\DateController::class => 'show'],
|
|
|
|
[\Wrm\Events\Controller\DateController::class => 'show']
|
|
|
|
);
|
|
|
|
|
|
|
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
|
|
|
|
'Events',
|
|
|
|
'Selected',
|
|
|
|
[\Wrm\Events\Controller\EventController::class => 'list']
|
|
|
|
);
|
|
|
|
|
2021-12-20 10:20:47 +01:00
|
|
|
if (
|
|
|
|
isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['events_category']) === false
|
|
|
|
|| is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['events_category']) === false
|
|
|
|
) {
|
2021-06-14 16:08:43 +02:00
|
|
|
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['events_category'] = [];
|
2019-07-18 13:44:19 +02:00
|
|
|
}
|
2021-02-11 13:18:06 +01:00
|
|
|
|
2021-06-14 16:08:43 +02:00
|
|
|
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
|
|
|
|
$iconRegistry->registerIcon(
|
|
|
|
'events-plugin',
|
|
|
|
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
|
|
|
|
['source' => 'EXT:events/Resources/Public/Icons/Extension.svg']
|
|
|
|
);
|
|
|
|
});
|