[BUGFIX] Syntax error in class EncryptionUtility
[TYPO3CMS/Extensions/sr_freecap.git] / ext_localconf.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 call_user_func(
5 function($extKey)
6 {
7 $extConf = (bool)\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Configuration\ExtensionConfiguration::class)->get($extKey);
8 // Setting the encryption algorithm
9 $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['sr_freecap']['encryptionAlgorithm'] = isset($extConf['encryptionAlgorithm']) ? $extConf['encryptionAlgorithm'] : 'AES-256-CBC';
10 $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['sr_freecap']['salt'] = isset($extConf['salt']) ? $extConf['salt'] : 'cH!swe!retReGu7W6bEDRup7usuDUh9THeD2CHeGE*ewr4n39=E@rAsp7c-Ph@pH';
11
12 // Dispatching requests to image generator and audio player
13 $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['sr_freecap']['eIDSR_include']['sr_freecap_EidDispatcher'] = \SJBR\SrFreecap\Http\EidDispatcher::class . '::initAndDispatch';
14
15 // Configuring the captcha image generator
16 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
17 // The extension name (in UpperCamelCase) or the extension key (in lower_underscore)
18 'SJBR' . '.' . $extKey,
19 // A unique name of the plugin in UpperCamelCase
20 'ImageGenerator',
21 // An array holding the controller-action-combinations that are accessible
22 [
23 // The first controller and its first action will be the default
24 'ImageGenerator' => 'show',
25 ],
26 // An array of non-cachable controller-action-combinations (they must already be enabled)
27 [
28 'ImageGenerator' => 'show',
29 ]
30 );
31
32 // Configuring the audio captcha player
33 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
34 // The extension name (in UpperCamelCase) or the extension key (in lower_underscore)
35 'SJBR' . '.' . $extKey,
36 // A unique name of the plugin in UpperCamelCase
37 'AudioPlayer',
38 // An array holding the controller-action-combinations that are accessible
39 [
40 // The first controller and its first action will be the default
41 'AudioPlayer' => 'play',
42 ],
43 // An array of non-cachable controller-action-combinations (they must already be enabled)
44 [
45 'AudioPlayer' => 'play',
46 ]
47 );
48 },
49 'sr_freecap'
50 );