mirror of
https://github.com/werkraum-media/events.git
synced 2024-11-21 21:56:09 +01:00
Daniel Siepmann
a9f3f108e3
The vendor was renamed from `wrm` to `werkraummedia`. And the namespace vendor was renamed from `Wrm` to `WerkraumMedia`. That way all references to PHP classes as well as the package name itself need to be adjusted.
57 lines
2.2 KiB
PHP
57 lines
2.2 KiB
PHP
<?php
|
|
|
|
defined('TYPO3') || die('Access denied.');
|
|
|
|
call_user_func(function () {
|
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
|
|
'Events',
|
|
'DateSearch',
|
|
[\WerkraumMedia\Events\Controller\DateController::class => 'search'],
|
|
[\WerkraumMedia\Events\Controller\DateController::class => 'search']
|
|
);
|
|
|
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
|
|
'Events',
|
|
'DateList',
|
|
[\WerkraumMedia\Events\Controller\DateController::class => 'list'],
|
|
[\WerkraumMedia\Events\Controller\DateController::class => 'list']
|
|
);
|
|
|
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
|
|
'Events',
|
|
'DateShow',
|
|
[\WerkraumMedia\Events\Controller\DateController::class => 'show'],
|
|
[\WerkraumMedia\Events\Controller\DateController::class => 'show']
|
|
);
|
|
|
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
|
|
'Events',
|
|
'Selected',
|
|
[\WerkraumMedia\Events\Controller\EventController::class => 'list']
|
|
);
|
|
|
|
if (
|
|
isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['events_category']) === false
|
|
|| is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['events_category']) === false
|
|
) {
|
|
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['events_category'] = [];
|
|
}
|
|
|
|
$GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'][] = '^events_search';
|
|
|
|
$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']
|
|
);
|
|
$iconRegistry->registerIcon(
|
|
'pages-module-events',
|
|
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
|
|
['source' => 'EXT:events/Resources/Public/Icons/Folder.svg']
|
|
);
|
|
|
|
\WerkraumMedia\Events\Caching\PageCacheTimeout::register();
|
|
\WerkraumMedia\Events\Updates\MigrateOldLocations::register();
|
|
\WerkraumMedia\Events\Updates\MigrateDuplicateLocations::register();
|
|
});
|