-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathext_localconf.php
27 lines (23 loc) · 1.02 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
<?php
defined('TYPO3') or die();
use DERHANSEN\SfBanners\Controller\BannerController;
use TYPO3\CMS\Core\Cache\Backend\Typo3DatabaseBackend;
use TYPO3\CMS\Core\Cache\Frontend\VariableFrontend;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
ExtensionUtility::configurePlugin(
'sf_banners',
'Pi1',
[
BannerController::class => 'show,getBanners,click',
],
/* non-cacheable actions */
[
BannerController::class => 'getBanners,click',
],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
// Register cache 'sfbanners_cache'
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['sfbanners_cache'] ??= [];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['sfbanners_cache']['frontend'] ??= VariableFrontend::class;
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['sfbanners_cache']['backend'] ??= Typo3DatabaseBackend::class;
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['sfbanners_cache']['groups'] ??= ['pages', 'all'];