forked from cyberhouse/news_importicsxml
-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathext_localconf.php
22 lines (19 loc) · 836 Bytes
/
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
<?php
call_user_func(
static 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']['EXT']['news']['classes']['Domain/Model/News'][] = $extKey;
spl_autoload_register(static function ($class) {
if (str_starts_with($class, 'PicoFeed')) {
$path = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('news_importicsxml') . 'Resources/Private/Contrib/picoFeed/lib/' . str_replace('\\',
'/', $class) . '.php';
require_once($path);
}
});
},
'news_importicsxml'
);