events/ext_localconf.php

48 lines
1.6 KiB
PHP
Raw Normal View History

<?php
defined('TYPO3') || die('Access denied.');
call_user_func(
function () {
2019-11-11 12:43:50 +01:00
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Events',
2019-11-11 12:43:50 +01:00
'DateSearch',
[\Wrm\Events\Controller\DateController::class => 'search'],
[\Wrm\Events\Controller\DateController::class => 'search']
2019-11-11 12:43:50 +01:00
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Events',
2019-11-11 12:43:50 +01:00
'DateList',
[\Wrm\Events\Controller\DateController::class => 'list'],
[\Wrm\Events\Controller\DateController::class => 'list']
2019-11-11 12:43:50 +01:00
);
2019-11-13 10:46:21 +01:00
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Events',
2019-11-13 10:46:21 +01:00
'DateShow',
[\Wrm\Events\Controller\DateController::class => 'show'],
[\Wrm\Events\Controller\DateController::class => 'show']
2019-11-13 10:46:21 +01:00
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Events',
'Selected',
[\Wrm\Events\Controller\EventController::class => 'list']
);
if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['events_category'])) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['events_category'] = [];
}
2019-11-11 12:43:50 +01: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,
2021-02-11 12:05:02 +01:00
['source' => 'EXT:events/Resources/Public/Icons/Extension.svg']
2019-11-11 12:43:50 +01:00
);
}
);