-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathext_localconf.php
More file actions
29 lines (25 loc) · 884 Bytes
/
ext_localconf.php
File metadata and controls
29 lines (25 loc) · 884 Bytes
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
<?php
use Jp\Jpfaq\Controller\CategorycommentController;
use Jp\Jpfaq\Controller\QuestioncommentController;
use Jp\Jpfaq\Controller\QuestionController;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
defined('TYPO3') || die('Access denied.');
$boot = static function (): void {
ExtensionUtility::configurePlugin(
'Jpfaq',
'Faq',
[
QuestionController::class => 'list, helpfulness',
QuestioncommentController::class => 'comment, addComment',
CategorycommentController::class => 'comment, addComment',
],
[
QuestionController::class => 'helpfulness',
QuestioncommentController::class => 'comment, addComment',
CategorycommentController::class => 'comment, addComment',
],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
};
$boot();
unset($boot);