forked from WapplerSystems/t3-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
58 lines (44 loc) · 1.85 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
<?php
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
use WapplerSystems\Proxy\Controller\ProxyController;
use WapplerSystems\Proxy\Plugin\ImagePlugin;
use WapplerSystems\Proxy\Plugin\LinkPlugin;
use WapplerSystems\Proxy\Plugin\Typo3CssPlugin;
use WapplerSystems\Proxy\Plugin\Typo3JavaScriptPlugin;
use WapplerSystems\Proxy\Plugin\Typo3MetaPlugin;
use WapplerSystems\Proxy\Plugin\Typo3TitlePlugin;
if (!defined('TYPO3')) {
die ('Access denied.');
}
ExtensionUtility::configurePlugin(
'proxy',
'proxy',
[
ProxyController::class => 'process',
],
[
ProxyController::class => 'process',
]
);
//$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['proxy_assets'] ??= [];
//$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['proxy_assets']['backend'] ??= \WapplerSystems\Proxy\Cache\Backend\AssetFileBackend::class;
$GLOBALS['TYPO3_CONF_VARS']['SYS']['routing']['aspects']['PathMapper'] = \WapplerSystems\Proxy\Routing\Aspect\PathMapper::class;
ExtensionManagementUtility::addTypoScriptSetup(trim('
config.pageTitleProviders {
proxy {
provider = WapplerSystems\Proxy\PageTitle\ProxyPageTitleProvider
before = altPageTitle,record,seo
}
}'));
if (!isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['proxy']['plugins'])) {
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['proxy']['plugins'] = [];
}
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['proxy']['plugins'] = array_merge($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['proxy']['plugins'],[
'Typo3JavaScriptPlugin' => Typo3JavaScriptPlugin::class,
'ImagePlugin' => ImagePlugin::class,
'LinkPlugin' => LinkPlugin::class,
'Typo3TitlePlugin' => Typo3TitlePlugin::class,
'Typo3CssPlugin' => Typo3CssPlugin::class,
'Typo3MetaPlugin' => Typo3MetaPlugin::class,
]);