-
Notifications
You must be signed in to change notification settings - Fork 1
/
ext_localconf.php
36 lines (32 loc) · 1.1 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
<?php
defined('TYPO3') || die();
(function () {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addService(
'mailhandler',
'submitmail',
'tx_mailhandler_submitmail',
[
'title' => 'Mailhandler',
'description' => 'Mailhandling',
'subtype' => '',
'available' => true,
'priority' => 60,
'quality' => 80,
'os' => '',
'exec' => '',
'className' => \ChriWo\Mailhandler\Service\MailService::class,
]
);
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$icons = [
'pagetree-folder-contains-mailhandler' => 'Module/module_mail.png',
'mailhandler-table-mail' => 'Table/table_mail.png'
];
foreach ($icons as $identifier => $file) {
$iconRegistry->registerIcon(
$identifier,
\TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class,
['source' => 'EXT:mailhandler/Resources/Public/Backend/Icon/' . $file]
);
}
})();