forked from IchHabRecht/filefill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
21 lines (19 loc) · 927 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
<?php
defined('TYPO3_MODE') || die();
call_user_func(function () {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['filefill'] =
\IchHabRecht\Filefill\Hooks\ResetMissingFiles::class;
$dispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
$dispatcher->connect(
\TYPO3\CMS\Core\Resource\ResourceFactory::class,
\TYPO3\CMS\Core\Resource\ResourceFactoryInterface::SIGNAL_PostProcessStorage,
\IchHabRecht\Filefill\Slot\ResourceFactorySlot::class,
'initializeResourceStorage'
);
$dispatcher->connect(
\TYPO3\CMS\Core\Resource\ResourceStorage::class,
\TYPO3\CMS\Core\Resource\Service\FileProcessingService::SIGNAL_PreFileProcess,
\IchHabRecht\Filefill\Slot\FileProcessingServiceSlot::class,
'ensureOriginalFileExists'
);
});