forked from lochmueller/calendarize_news
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
32 lines (28 loc) · 1.23 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
31
32
<?php
/**
* General ext_localconf file and also an example for your own extension
*
* @category Extension
* @package Calendarize
* @author Tim Lochmüller
*/
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\HDNET\Autoloader\Loader::extLocalconf(
'HDNET',
'calendarize_news',
\HDNET\CalendarizeNews\Register::getAutoloaderConfiguration()
);
\HDNET\Calendarize\Register::extLocalconf(\HDNET\CalendarizeNews\Register::getConfiguration());
$extensionConfiguration = (array)unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['calendarize_news']);
if (isset($extensionConfiguration['replaceNewsRepositoryByIndexSelection']) && (bool)$extensionConfiguration['replaceNewsRepositoryByIndexSelection']) {
$xclasses = [
\HDNET\CalendarizeNews\Xclass\NewsController::class => \GeorgRinger\News\Controller\NewsController::class,
\HDNET\CalendarizeNews\Xclass\NewsRepository::class => \GeorgRinger\News\Domain\Repository\NewsRepository::class,
\HDNET\CalendarizeNews\Xclass\NewsLinkViewHelper::class => \GeorgRinger\News\ViewHelpers\LinkViewHelper::class,
];
foreach ($xclasses as $key => $value) {
\HDNET\Autoloader\Utility\ExtendedUtility::addXclass($value, $key);
}
}