-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
65 lines (56 loc) · 1.99 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
use Psr\Log\LogLevel;
use TYPO3\CMS\Core\Core\Environment;
use TYPO3\CMS\Core\Log\Processor\IntrospectionProcessor;
use TYPO3\CMS\Core\Log\Writer\FileWriter;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
use Xima\XimaApiClient\Configuration;
use Xima\XimaApiClient\Controller\RequestController;
use Xima\XimaApiClient\Form\Element\RegisteredTemplateElement;
use Xima\XimaApiClient\Form\Element\ReusableRequestElement;
defined('TYPO3') or die('Access denied.');
/**
* Cache
*/
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][Configuration::CACHE_IDENTIFIER] ??= [];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][Configuration::CACHE_IDENTIFIER]['groups'] ??= ['pages'];
/**
* Log to a separate file
*/
$GLOBALS['TYPO3_CONF_VARS']['LOG']['xima']['api']['client']['writerConfiguration'] = [
LogLevel::DEBUG => [
FileWriter::class => [
'logFile' => Environment::getVarPath() . '/log/xima_api_client.log',
],
],
];
/**
* Append line number and file to log entries
*/
$GLOBALS['TYPO3_CONF_VARS']['LOG']['xima']['api']['client']['processorConfiguration'] = [
LogLevel::DEBUG => [
IntrospectionProcessor::class => [],
],
];
ExtensionUtility::configurePlugin(
Configuration::EXT_NAME,
Configuration::PLUGIN_NAME,
[
RequestController::class => 'reusableRequest, reusableRequestAjax',
],
[
RequestController::class => 'reusableRequest, reusableRequestAjax',
]
);
// Register "ac" as global fluid namespace
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['ac'] = ['Xima\\XimaApiClient\\ViewHelpers'];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1685089443] = [
'nodeName' => 'registeredTemplate',
'priority' => 40,
'class' => RegisteredTemplateElement::class,
];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1685089444] = [
'nodeName' => 'reusableRequest',
'priority' => 41,
'class' => ReusableRequestElement::class,
];