This repository has been archived by the owner on Dec 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
43 lines (36 loc) · 1.53 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
<?php
use TYPO3\CMS\Core\Utility\GeneralUtility;
defined('TYPO3_MODE') or die();
call_user_func(function () {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'CourseScheduler',
'Courses',
[
\Rintisch\CourseScheduler\Controller\CourseController::class => 'list'
]
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'CourseScheduler',
'Locations',
[
\Rintisch\CourseScheduler\Controller\LocationController::class => 'list'
]
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'CourseScheduler',
'SingleCourse',
[
\Rintisch\CourseScheduler\Controller\CourseController::class => 'detail'
]
);
/**
* Override existing object classes
*/
GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\Container\Container::class)
->registerImplementation(\DERHANSEN\SfEventMgt\Domain\Model\Location::class, \Rintisch\CourseScheduler\Domain\Model\Location::class);
GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\Container\Container::class)
->registerImplementation(\DERHANSEN\SfEventMgt\Domain\Repository\LocationRepository::class, \Rintisch\CourseScheduler\Domain\Repository\LocationRepository::class);
//register hooks
// event safe hook
$GLOBALS ['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['course_scheduler'] = 'Rintisch\\CourseScheduler\\Hooks\\EventSafeHook';
});