From ed23c783cd84964d654a5d796fdef82109f37309 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Mon, 14 Jun 2021 16:08:43 +0200 Subject: [PATCH] Adjust formatting --- ext_localconf.php | 70 ++++++++++++++++++++++------------------------- 1 file changed, 33 insertions(+), 37 deletions(-) diff --git a/ext_localconf.php b/ext_localconf.php index 1b12074..06e7ea3 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -2,46 +2,42 @@ defined('TYPO3') || die('Access denied.'); -call_user_func( - function () { +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', - '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', - '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', - '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'] + ); - \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'] = []; - } - - $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'] - ); + 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'] + ); +});