forked from svenpet90/instagram
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_localconf.php
More file actions
43 lines (38 loc) · 1.42 KB
/
ext_localconf.php
File metadata and controls
43 lines (38 loc) · 1.42 KB
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 (!isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['features']['instagram.tokenGeneratorBeModule'])) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['features']['instagram.tokenGeneratorBeModule'] = true;
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'SvenPetersen.Instagram',
'List',
[
\SvenPetersen\Instagram\Controller\PostController::class => 'list, show',
],
// non-cacheable actions
[
\SvenPetersen\Instagram\Controller\PostController::class => '',
]
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'SvenPetersen.Instagram',
'Show',
[
\SvenPetersen\Instagram\Controller\PostController::class => 'show',
],
// non-cacheable actions
[
\SvenPetersen\Instagram\Controller\PostController::class => '',
]
);
/** @var \TYPO3\CMS\Core\Information\Typo3Version $versionInformation */
$versionInformation = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Information\Typo3Version::class);
if ($versionInformation->getMajorVersion() === 10) {
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
\TYPO3\CMS\Core\Imaging\IconRegistry::class
);
$iconRegistry->registerIcon(
'actions-brand-instagram',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:instagram/Resources/Public/Icons/actions-brand-instagram.svg']
);
}