forked from t3brightside/personnel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
41 lines (33 loc) · 1.35 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
<?php
declare(strict_types=1);
use TYPO3\CMS\Core\Information\Typo3Version;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Core\Imaging\IconRegistry;
use TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider;
use Brightside\Personnel\Hooks\ContentPostProcessor;
defined('TYPO3') || die('Access denied.');
$GLOBALS['TYPO3_CONF_VARS']['EXT']['news']['classes']['Domain/Model/News']['personnel'] = 'personnel';
(function () {
$versionInformation = GeneralUtility::makeInstance(Typo3Version::class);
if ($versionInformation->getMajorVersion() < 12) {
ExtensionManagementUtility::addPageTSConfig('
@import "EXT:personnel/Configuration/page.tsconfig"
');
}
$iconRegistry = GeneralUtility::makeInstance(IconRegistry::class);
$iconRegistry->registerIcon(
'mimetypes-x-content-personnel',SvgIconProvider::class,
['source' => 'EXT:personnel/Resources/Public/Icons/mimetypes-x-content-personnel.svg']
);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-output'][] =
ContentPostProcessor::class . '->render';
ExtensionUtility::configurePlugin(
'personnel',
'Personnel',
[
'Personnel' => 'personnel'
]
);
})();