forked from plan2net/fake-fal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_localconf.php
More file actions
29 lines (26 loc) · 1.37 KB
/
ext_localconf.php
File metadata and controls
29 lines (26 loc) · 1.37 KB
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
<?php
defined('TYPO3_MODE') or die('Access denied');
(static function() {
// @todo after TYPO3 8 support dropped, use the API
if ((bool)\Plan2net\FakeFal\Utility\Configuration::getExtensionConfiguration('enable')) {
/** @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher $dispatcher */
$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,
\Plan2net\FakeFal\Resource\Slot\ResourceFactorySlot::class,
'initializeResourceStorage'
);
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][\TYPO3\CMS\Core\Resource\ResourceFactory::class] = [
'className' => \Plan2net\FakeFal\Resource\Core\ResourceFactory::class
];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][\TYPO3\CMS\Core\Resource\ResourceStorage::class] = [
'className' => \Plan2net\FakeFal\Resource\Core\ResourceStorage::class
];
// @todo after TYPO3 8 support dropped, use Symfony console commands
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] =
\Plan2net\FakeFal\Command\FakeStorageCommandController::class;
}
})();