-
Notifications
You must be signed in to change notification settings - Fork 21
/
ext_localconf.php
28 lines (25 loc) · 1.39 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
28
<?php declare(strict_types=1);
call_user_func(function (): void {
// Make fc a global namespace
if (!isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['fc'])) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['fc'] = [];
}
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['fc'][] = 'SMS\\FluidComponents\\ViewHelpers';
// Register type aliases
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['fluid_components']['typeAliases'] = array_merge(
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['fluid_components']['typeAliases'] ?? [],
[
'File' => SMS\FluidComponents\Domain\Model\File::class,
'Image' => SMS\FluidComponents\Domain\Model\Image::class,
'Labels' => SMS\FluidComponents\Domain\Model\Labels::class,
'Link' => SMS\FluidComponents\Domain\Model\Link::class,
'Navigation' => SMS\FluidComponents\Domain\Model\Navigation::class,
'NavigationItem' => SMS\FluidComponents\Domain\Model\NavigationItem::class,
'Slot' => SMS\FluidComponents\Domain\Model\Slot::class,
'Typolink' => SMS\FluidComponents\Domain\Model\Typolink::class,
]
);
if (!isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['features']['fluidComponents.partialsInComponents'])) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['features']['fluidComponents.partialsInComponents'] = false;
}
});