forked from in2code-de/instagram
-
Notifications
You must be signed in to change notification settings - Fork 2
/
ext_localconf.php
43 lines (38 loc) · 1.21 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
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
call_user_func(
function () {
/**
* Include Frontend Plugins
*/
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'In2code.instagram',
'Pi1',
[
In2code\Instagram\Controller\ProfileController::class => 'show'
]
);
/**
* Caching framework
*/
if (!is_array(($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['instagram'] ?? 0))) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['instagram'] = [];
}
/**
* UserFunc for TCA and FlexForm
*/
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1615740358] = [
'nodeName' => 'instagramGetToken',
'priority' => 50,
'class' => \In2code\Instagram\Tca\GetToken::class,
];
/**
* ContentElementWizard
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'@import "EXT:instagram/Configuration/TSConfig/ContentElementWizard.typoscript"'
);
}
);