forked from georgringer/news_importicsxml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
38 lines (34 loc) · 1.7 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
33
34
35
36
37
38
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
call_user_func(
function ($extKey) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1496812651] = [
'nodeName' => 'json',
'priority' => 40,
'class' => \GeorgRinger\NewsImporticsxml\Hooks\Backend\Element\JsonElement::class
];
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\GeorgRinger\NewsImporticsxml\Tasks\ImportTask::class] = [
'extension' => $extKey,
'title' => 'LLL:EXT:' . $extKey . '/Resources/Private/Language/locallang.xlf:task.name',
'description' => 'LLL:EXT:' . $extKey . '/Resources/Private/Language/locallang.xlf:task.description',
'additionalFields' => \GeorgRinger\NewsImporticsxml\Tasks\ImportTaskAdditionalFieldProvider::class
];
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class)->connect(
\GeorgRinger\News\Domain\Service\NewsImportService::class,
'postHydrate',
\GeorgRinger\NewsImporticsxml\Aspect\NewsImportAspect::class,
'postHydrate'
);
$GLOBALS['TYPO3_CONF_VARS']['EXT']['news']['classes']['Domain/Model/News'][] = $extKey;
spl_autoload_register(function ($class) {
if (\TYPO3\CMS\Core\Utility\GeneralUtility::isFirstPartOfStr($class, 'PicoFeed')) {
$path = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('news_importicsxml') . 'Resources/Private/Contrib/picoFeed/lib/' . str_replace('\\',
'/', $class) . '.php';
require_once($path);
}
});
},
$_EXTKEY
);