forked from helhum/upload_example
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ext_localconf.php
35 lines (32 loc) · 1.23 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
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Helhum.' . $_EXTKEY,
'Piexample',
[
'Example' => 'list, show, new, create, edit, update, delete',
],
// non-cacheable actions
[
'Example' => 'list, show, new, create, edit, update, delete',
]
);
if (version_compare(TYPO3_branch, '7.0', '>')) {
if (TYPO3_MODE === 'BE') {
$icons = [
'ext-upload-icon' => 'Extension.png',
];
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
foreach ($icons as $identifier => $path) {
$iconRegistry->registerIcon(
$identifier,
\TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class,
['source' => 'EXT:upload_example/Resources/Public/Icons/' . $path]
);
}
}
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerTypeConverter('Helhum\\UploadExample\\Property\\TypeConverter\\UploadedFileReferenceConverter');
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerTypeConverter('Helhum\\UploadExample\\Property\\TypeConverter\\ObjectStorageConverter');