-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
33 lines (28 loc) · 1.46 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
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
call_user_func(
function() {
// Register global Fluid namespaces
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['blog'] = ['Tollwerk\\TwBlog\\ViewHelpers'];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['vhs'] = ['FluidTYPO3\\Vhs\\ViewHelpers'];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['formvh'] = ['TYPO3\\CMS\\Form\\ViewHelpers'];
// Register hook after saving records (tt_content, plugins, pages, everything) in backend.
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \Tollwerk\TwBlog\Hooks\TceMainHook::class;
// Configure plugins
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'TwBlog',
'Blog',
[\Tollwerk\TwBlog\Controller\BlogController::class => 'list, filter, navigation'],
[]
);
// Extend classes (XCLASSes)
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][\TYPO3\CMS\Extbase\Domain\Model\Category::class] = [
'className' => \Tollwerk\TwBlog\Domain\Model\Category::class
];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][\TYPO3\CMS\Extbase\Domain\Repository\CategoryRepository::class] = [
'className' => \Tollwerk\TwBlog\Domain\Repository\CategoryRepository::class
];
}
);