forked from klamparski/t3apicontent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
24 lines (19 loc) · 898 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
22
23
24
<?php
defined('TYPO3_MODE') || die('Access denied.');
call_user_func(
static function () {
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['t3api']['serializerMetadataDirs'] = array_merge(
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['t3api']['serializerMetadataDirs'] ?? [],
[
'Klamparski.T3apicontent' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('t3apicontent') . 'Resources/Private/Serializer/Klamparski.T3apicontent',
]
);
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['t3api']['serializerHandlers'] = array_merge(
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['t3api']['serializerHandlers'] ?? [],
[
\Klamparski\T3apicontent\Serializer\Handler\DataProcessorHandler::class,
\Klamparski\T3apicontent\Serializer\RteHandler::class,
]
);
}
);