-
Notifications
You must be signed in to change notification settings - Fork 3
/
ext_localconf.php
39 lines (34 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
36
37
38
39
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
$boot = function ($packageKey) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['golb'][] = 'Greenfieldr\\Golb\\ViewHelpers';
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
$packageKey,
'Blog',
[
\Greenfieldr\Golb\Controller\BlogController::class => 'latest, list'
],
[
\Greenfieldr\Golb\Controller\BlogController::class => 'list'
]
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
$packageKey,
'ViewCount',
[
\Greenfieldr\Golb\Controller\ViewCountController::class => 'countView'
],
[
\Greenfieldr\Golb\Controller\ViewCountController::class => 'countView'
]
);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][\Greenfieldr\Golb\Hooks\SetBackendLayout::class]
= \Greenfieldr\Golb\Hooks\SetBackendLayout::class;
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Extbase\\Domain\\Model\\Category'] = [
'className' => 'Greenfieldr\\Golb\\Domain\\Model\\Category',
];
};
$boot('golb');
unset($boot);