-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathext_localconf.php
More file actions
42 lines (34 loc) · 1.96 KB
/
Copy pathext_localconf.php
File metadata and controls
42 lines (34 loc) · 1.96 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
<?php
declare(strict_types=1);
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
use Xima\XimaTypo3PageSubscription\Configuration;
use Xima\XimaTypo3PageSubscription\Controller\RecordController;
defined('TYPO3') || die();
foreach ([
Configuration::PLUGIN_NAME_SUBSCRIPTIONS => 'subscriptions',
Configuration::PLUGIN_NAME_FAVORITES => 'favorites',
] as $pluginName => $actions) {
ExtensionUtility::configurePlugin(
Configuration::EXT_NAME,
$actions,
[
RecordController::class => $actions,
],
[
RecordController::class => $actions,
],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
}
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['xtps'] = ['Xima\\XimaTypo3PageSubscription\\ViewHelpers'];
/*
* Register Interpreter
*/
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS'][Configuration::EXT_KEY]['registerInterpreter'] = [];
// Content
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS'][Configuration::EXT_KEY]['registerInterpreter'][\TYPO3\CMS\Core\Resource\File::class] = \Xima\XimaTypo3PageSubscription\Interpreter\FileInterpreter::class;
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS'][Configuration::EXT_KEY]['registerInterpreter'][\TYPO3\CMS\ContentBlocks\DataProcessing\ContentBlockData::class] = \Xima\XimaTypo3PageSubscription\Interpreter\ContentBlockInterpreter::class;
// News
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS'][Configuration::EXT_KEY]['registerInterpreter'][\GeorgRinger\News\Domain\Model\NewsDefault::class] = \Xima\XimaTypo3PageSubscription\Interpreter\NewsInterpreter::class;
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS'][Configuration::EXT_KEY]['registerInterpreter'][\GeorgRinger\News\Domain\Model\NewsInternal::class] = \Xima\XimaTypo3PageSubscription\Interpreter\NewsInterpreter::class;
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS'][Configuration::EXT_KEY]['registerInterpreter'][\GeorgRinger\News\Domain\Model\NewsExternal::class] = \Xima\XimaTypo3PageSubscription\Interpreter\NewsInterpreter::class;