-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathext_localconf.php
More file actions
24 lines (18 loc) · 929 Bytes
/
ext_localconf.php
File metadata and controls
24 lines (18 loc) · 929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
/*
* This file is part of the "headless dev tools" Extension for TYPO3 CMS.
*
* For the full copyright and license information, please read the
* LICENSE.md file that was distributed with this source code.
*/
use TYPO3\CMS\Core\Configuration\Features;
use TYPO3\CMS\Core\Utility\GeneralUtility;
defined('TYPO3') || die();
(static function () {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['headlessDevTools'] = ['FriendsOfTYPO3\\HeadlessDevTools\\ViewHelpers'];
$features = GeneralUtility::makeInstance(Features::class);
if ($features->isFeatureEnabled('headless.storageProxy') &&
class_exists(\IchHabRecht\Filefill\Resource\RemoteResourceCollection::class)) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][\IchHabRecht\Filefill\Resource\RemoteResourceCollection::class]['className'] = \FriendsOfTYPO3\HeadlessDevTools\Xclass\RemoteResourceCollection::class;
}
})();