-
Notifications
You must be signed in to change notification settings - Fork 2
/
ext_localconf.php
executable file
·32 lines (27 loc) · 1.08 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
29
30
31
32
<?php
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Core\Imaging\IconRegistry;
use TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider;
if (!defined('TYPO3')) {
die('Access denied.');
}
(static function (string $extensionKey): void {
// TypoScript Constants
ExtensionManagementUtility::addTypoScriptConstants(
'<INCLUDE_TYPOSCRIPT:source="FILE:EXT:' . $extensionKey . '/Configuration/TypoScript/constants.typoscript">'
);
// TypoScript Setup
ExtensionManagementUtility::addTypoScriptSetup(
'<INCLUDE_TYPOSCRIPT:source="FILE:EXT:' . $extensionKey . '/Configuration/TypoScript/setup.typoscript">'
);
$iconRegistry = GeneralUtility::makeInstance(IconRegistry::class);
$iconRegistry->registerIcon(
'recaptcha',
SvgIconProvider::class,
[
'source' => 'EXT:formrecaptcha/Resources/Public/Icons/recaptcha.svg'
]
);
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['frc'] = ['Neusta\\Formrecaptcha\\ViewHelpers'];
})('formrecaptcha');