-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathext_localconf.php
58 lines (52 loc) · 1.7 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
defined('TYPO3') or die();
use T3docs\BlogExample\Controller\BlogController;
use T3docs\BlogExample\Controller\CommentController;
use T3docs\BlogExample\Controller\PostController;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
(static function (string $extensionName): void {
// Blog plugins
ExtensionUtility::configurePlugin(
$extensionName,
'BlogList',
// Cache-able Controller-Actions
[
BlogController::class => 'index',
PostController::class => 'index, show',
CommentController::class => 'create',
],
[
CommentController::class => 'create',
],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT,
);
// RSS Feed
ExtensionUtility::configurePlugin(
$extensionName,
'PostListRss',
// Cache-able Controller-Actions
[
PostController::class => 'displayRssList',
],
[],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT,
);
// admin plugins
ExtensionUtility::configurePlugin(
$extensionName,
'BlogAdmin',
// Cache-able Controller-Actions
[
BlogController::class => 'new,create,delete,deleteAll,edit,update,populate',
PostController::class => 'new,create,delete,edit,update',
CommentController::class => 'delete',
],
// Non-Cache-able Controller-Actions
[
BlogController::class => 'create,delete,deleteAll,update,populate',
PostController::class => 'create,delete,update',
CommentController::class => 'delete',
],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT,
);
})('BlogExample');