-
Notifications
You must be signed in to change notification settings - Fork 1
/
ext_localconf.php
30 lines (27 loc) · 1.04 KB
/
ext_localconf.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
use WerkraumMedia\Watchlist\Controller\WatchlistController;
use WerkraumMedia\Watchlist\Extbase\TypeConverter\ItemTypeConverter;
use WerkraumMedia\Watchlist\Extbase\TypeConverter\WatchlistTypeConverter;
use WerkraumMedia\Watchlist\Form\Hook\BeforeRenderingHook;
defined('TYPO3') || die('Access denied.');
(static function (): void {
ExtensionUtility::configurePlugin(
'Watchlist',
'Watchlist',
[
WatchlistController::class => 'index, add, remove',
],
[
WatchlistController::class => 'index',
],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
ExtensionManagementUtility::addPageTSConfig(
"@import 'EXT:watchlist/Configuration/TSconfig/Page/Default.tsconfig'"
);
ExtensionUtility::registerTypeConverter(WatchlistTypeConverter::class);
ExtensionUtility::registerTypeConverter(ItemTypeConverter::class);
BeforeRenderingHook::register();
})();