forked from cyberhouse/news_importicsxml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
27 lines (24 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
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Cyberhouse\\NewsImporticsxml\\Tasks\\ImportTask'] = array(
'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' => \Cyberhouse\NewsImporticsxml\Tasks\ImportTaskAdditionalFieldProvider::class
);
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher')->connect(
'GeorgRinger\\News\\Domain\\Service\\NewsImportService',
'postHydrate',
'Cyberhouse\\NewsImporticsxml\\Aspect\\NewsImportAspect',
'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);
}
});