forked from NamelessCoder/asynchronous_reference_indexing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
23 lines (18 loc) · 1.05 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
<?php
defined('TYPO3_MODE') || die('Access denied');
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][\TYPO3\CMS\Core\DataHandling\DataHandler::class]['className'] =
\NamelessCoder\AsyncReferenceIndexing\DataHandling\DataHandler::class;
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][\TYPO3\CMS\Core\Database\ReferenceIndex::class]['className'] =
\NamelessCoder\AsyncReferenceIndexing\Database\ReferenceIndex::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] =
\NamelessCoder\AsyncReferenceIndexing\Command\AsyncReferenceIndexCommandController::class;
$_EXTCONF = unserialize($_EXTCONF);
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$_EXTKEY] = $_EXTCONF;
// Register signal
$dispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
$dispatcher->connect(
\TYPO3\CMS\Core\Database\ReferenceIndex::class,
'shouldExcludeTableFromReferenceIndex',
\NamelessCoder\AsyncReferenceIndexing\Slot\ReferenceIndexSlot::class,
'shouldExcludeTableFromReferenceIndex'
);