/
ext_localconf.php
39 lines (34 loc) · 1.27 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
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
(function () {
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
\TYPO3\CMS\Core\Imaging\IconRegistry::class
);
$images = [
'tx-storage-framework-manager-logo',
'tx-storage-framework-manager-redis',
'tx-storage-framework-manager-database',
'tx-storage-framework-manager-simple-file',
'tx-storage-framework-manager-file',
'tx-storage-framework-manager-wincache',
'tx-storage-framework-manager-transient-memory',
'tx-storage-framework-manager-pdo',
'tx-storage-framework-manager-memcached',
'tx-storage-framework-manager-apc',
'tx-storage-framework-manager-apcu',
'tx-storage-framework-manager-null',
'tx-storage-framework-manager-core',
'tx-storage-framework-manager-extensions',
'tx-storage-framework-manager-session',
'tx-storage-framework-manager-logo',
];
foreach ($images as $key => $image) {
$iconRegistry->registerIcon(
$image,
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:storage_framework_manager/Resources/Public/Icons/' . $image . '.svg']
);
}
})($_EXTKEY);