mirror of
https://github.com/werkraum-media/events.git
synced 2024-11-25 01:56:10 +01:00
Adjust formatting
This commit is contained in:
parent
5440ef4f72
commit
ed23c783cd
1 changed files with 33 additions and 37 deletions
|
@ -2,46 +2,42 @@
|
||||||
|
|
||||||
defined('TYPO3') || die('Access denied.');
|
defined('TYPO3') || die('Access denied.');
|
||||||
|
|
||||||
call_user_func(
|
call_user_func(function () {
|
||||||
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(
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
|
||||||
'Events',
|
'Events',
|
||||||
'DateSearch',
|
'DateList',
|
||||||
[\Wrm\Events\Controller\DateController::class => 'search'],
|
[\Wrm\Events\Controller\DateController::class => 'list'],
|
||||||
[\Wrm\Events\Controller\DateController::class => 'search']
|
[\Wrm\Events\Controller\DateController::class => 'list']
|
||||||
);
|
);
|
||||||
|
|
||||||
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
|
||||||
'Events',
|
'Events',
|
||||||
'DateList',
|
'DateShow',
|
||||||
[\Wrm\Events\Controller\DateController::class => 'list'],
|
[\Wrm\Events\Controller\DateController::class => 'show'],
|
||||||
[\Wrm\Events\Controller\DateController::class => 'list']
|
[\Wrm\Events\Controller\DateController::class => 'show']
|
||||||
);
|
);
|
||||||
|
|
||||||
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
|
||||||
'Events',
|
'Events',
|
||||||
'DateShow',
|
'Selected',
|
||||||
[\Wrm\Events\Controller\DateController::class => 'show'],
|
[\Wrm\Events\Controller\EventController::class => 'list']
|
||||||
[\Wrm\Events\Controller\DateController::class => 'show']
|
);
|
||||||
);
|
|
||||||
|
|
||||||
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
|
if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['events_category'])) {
|
||||||
'Events',
|
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['events_category'] = [];
|
||||||
'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'] = [];
|
|
||||||
}
|
|
||||||
|
|
||||||
$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 = \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']
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
Loading…
Reference in a new issue