bookmark-pages/ext_localconf.php

42 lines
1.4 KiB
PHP
Raw Normal View History

2021-08-16 16:15:21 +02:00
<?php
/*
* This file is part of the package buepro/bookmark_pages.
*
* For the full copyright and license information, please read the
* LICENSE file that was distributed with this source code.
*/
defined('TYPO3') or die('Access denied.');
(function () {
$version = \TYPO3\CMS\Core\Utility\VersionNumberUtility::getCurrentTypo3Version();
$version = \TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger($version);
if ($version < 10000000) {
// For TYPO3 < V10
// @extensionScannerIgnoreLine
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'WapplerSystems.BookmarkPages',
'Bookmarks',
[
'Bookmarks' => 'index, bookmark, delete, listEntries',
],
// non-cacheable actions
[
'Bookmarks' => 'bookmark, delete, listEntries',
]
);
} else {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'BookmarkPages',
'Bookmarks',
[
\WapplerSystems\BookmarkPages\Controller\BookmarksController::class => 'index, bookmark, delete, listEntries'
],
[
\WapplerSystems\BookmarkPages\Controller\BookmarksController::class => 'bookmark, delete, listEntries'
]
);
}
})();