-
Notifications
You must be signed in to change notification settings - Fork 4
/
ext_localconf.php
44 lines (38 loc) · 1.56 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
<?php
use Dan\Jobfair\Controller\JobController;
use Dan\Jobfair\Property\TypeConverter\UploadedFileReferenceConverter;
use TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider;
use TYPO3\CMS\Core\Imaging\IconRegistry;
use TYPO3\CMS\Core\Information\Typo3Version;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Domain\Model\FileReference;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
if (!defined('TYPO3')) {
die('Access denied.');
}
(function() {
ExtensionUtility::configurePlugin(
'jobfair',
'Pi1',
[
JobController::class => 'list, latest, show, new, create, edit, update, confirmDelete, delete, newApplication, createApplication',
],
// non-cacheable actions
[
JobController::class => 'list, latest, show, new, create, edit, update, confirmDelete, delete, newApplication, createApplication',
]
);
$iconRegistry = GeneralUtility::makeInstance(IconRegistry::class);
$iconRegistry->registerIcon(
'apps-pagetree-folder-contains-jobs',
BitmapIconProvider::class,
['source' => 'EXT:jobfair/Resources/Public/Icons/folder.gif']
);
if ((new Typo3Version())->getMajorVersion() < 12) {
ExtensionUtility::registerTypeConverter(UploadedFileReferenceConverter::class);
ExtensionUtility::registerTypeConverter(\Dan\Jobfair\Property\TypeConverter\ObjectStorageConverter::class);
}
})();
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][FileReference::class] = [
'className' => \Dan\Jobfair\Domain\Model\FileReference::class,
];