-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
73 lines (66 loc) · 2.71 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
66
67
68
69
70
71
72
73
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
$boot = static function (): void {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Proudnerds.PnUniformProductNames',
'PnForPages',
[
\Proudnerds\PnUniformProductNames\Controller\UniformeproductnamenController::class => 'show'
],
[
\Proudnerds\PnUniformProductNames\Controller\UniformeproductnamenController::class => 'show'
]
);
$projectRootPath = TYPO3\CMS\Core\Utility\GeneralUtility::fixWindowsFilePath(getenv('TYPO3_PATH_APP'));
$productNamesImportLogFilePath = $projectRootPath . '/var/log/productNames-import.log';
$GLOBALS['TYPO3_CONF_VARS']['LOG']['Proudnerds']['PnUniformProductNames']['Command']['ImportCommand'] = [
'writerConfiguration' => [
\TYPO3\CMS\Core\Log\LogLevel::INFO => [
'TYPO3\\CMS\\Core\\Log\\Writer\\FileWriter' => [
'logFile' => $productNamesImportLogFilePath
]
],
\TYPO3\CMS\Core\Log\LogLevel::NOTICE => [
'TYPO3\\CMS\\Core\\Log\\Writer\\FileWriter' => [
'logFile' => $productNamesImportLogFilePath
]
],
\TYPO3\CMS\Core\Log\LogLevel::WARNING => [
'TYPO3\\CMS\\Core\\Log\\Writer\\FileWriter' => [
'logFile' => $productNamesImportLogFilePath
]
],
\TYPO3\CMS\Core\Log\LogLevel::ERROR => [
'TYPO3\\CMS\\Core\\Log\\Writer\\FileWriter' => [
'logFile' => $productNamesImportLogFilePath
]
],
\TYPO3\CMS\Core\Log\LogLevel::CRITICAL => [
'TYPO3\\CMS\\Core\\Log\\Writer\\FileWriter' => [
'logFile' => $productNamesImportLogFilePath
]
],
\TYPO3\CMS\Core\Log\LogLevel::ALERT => [
'TYPO3\\CMS\\Core\\Log\\Writer\\FileWriter' => [
'logFile' => $productNamesImportLogFilePath
]
],
]
];
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconPath = 'EXT:pn_uniform_product_names/Resources/Public/Icons/';
$svgIcons = [
'tx_pnuniformproductnames_domain_model_uniformeproductnamen' => $iconPath . 'tx_pnuniformproductnames_domain_model_uniformeproductnamen.svg'
];
foreach ($svgIcons as $identifier => $path) {
$iconRegistry->registerIcon(
$identifier,
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => $path]
);
}
};
$boot();
unset($boot);