-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
53 lines (48 loc) · 1.55 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
<?php
declare(strict_types=1);
use PHTH\Pongback\Controller\PingbackController;
use PHTH\Pongback\Domain\Validator\PingbackValidator;
use PHTH\Pongback\Hook\Tcemain;
use PHTH\Pongback\Service\PingbackClient;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
if (! defined('TYPO3')) {
die('Access denied.');
}
ExtensionUtility::configurePlugin(
'Pongback',
'Pongbackfrontend',
[
PingbackController::class => 'list, show',
],
// non-cacheable actions
[
PingbackController::class => '',
]
);
ExtensionUtility::configurePlugin(
'Pongback',
'Pongbackbackend',
[
PingbackController::class => 'list, show, delete, edit, publish, unpublish',
],
// non-cacheable actions
[
PingbackController::class => '',
]
);
ExtensionUtility::configurePlugin(
'Pongback',
'server',
[
PingbackController::class => 'server',
],
// non-cacheable actions
[
PingbackController::class => 'server',
]
);
$GLOBALS['TYPO3_CONF_VARS']['MAIL']['substituteOldMailAPI'] = '0';
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['pongback']['validatePingback'][] = PingbackValidator::class . '->validateTargetUri';
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['pongback']['validatePingback'][] = PingbackValidator::class . '->getInformationFromOtherWebsite';
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['pongback']['validatePingback'][] = PingbackClient::class . '->mailPingbackArrived';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = Tcemain::class;