mirror of
https://github.com/werkraum-media/watchlist.git
synced 2024-11-22 10:16:08 +01:00
26 lines
784 B
PHP
26 lines
784 B
PHP
|
<?php
|
||
|
|
||
|
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
|
||
|
use WerkraumMedia\Watchlist\Controller\WatchlistController;
|
||
|
use WerkraumMedia\Watchlist\Extbase\TypeConverter\ItemTypeConverter;
|
||
|
use WerkraumMedia\Watchlist\Extbase\TypeConverter\WatchlistTypeConverter;
|
||
|
|
||
|
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
|
||
|
);
|
||
|
|
||
|
ExtensionUtility::registerTypeConverter(WatchlistTypeConverter::class);
|
||
|
ExtensionUtility::registerTypeConverter(ItemTypeConverter::class);
|
||
|
})();
|