ext_localconf.php 2.37 KB
Newer Older
1
<?php
Markus Sommer's avatar
Markus Sommer committed
2
3
if (!defined('TYPO3_MODE')) {
    die('Access denied.');
flyguide's avatar
flyguide committed
4
}
5

6
// Make plugin available in frontend
7
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
8
    'T3o.ter_fe2',
Markus Sommer's avatar
Markus Sommer committed
9
    'Pi1',
10
    [
11
        'Extension' => 'show, new, create, edit, update, delete, download, list, listLatest, uploadVersion, createVersion, removeTag',
12
13
        'Tag' => 'list, new, create, edit, update, delete, show',
        'Author' => 'list, edit, update, show',
14
        'Registerkey' => 'index, admin, deleteExtensionVersion, create, manage, transfer, delete, keep, setAsLastVersion',
15
16
17
        'Review' => 'update',
    ],
    [
18
        'Extension' => 'create, update, edit, delete, download, uploadVersion, createVersion, removeTag',
19
20
        'Tag' => 'create, delete',
        'Author' => 'update',
21
        'Registerkey' => 'index, admin, deleteExtensionVersion, create, manage, transfer, delete, keep, setAsLastVersion',
22
23
        'Review' => 'update',
    ]
flyguide's avatar
flyguide committed
24
);
25

Thomas Löffler's avatar
Thomas Löffler committed
26
27
28
29
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
    'T3o.ter_fe2',
    'Rating',
    [
30
        'Extension' => 'like,disLike,activateNotification,deactivateNotification'
Thomas Löffler's avatar
Thomas Löffler committed
31
32
    ],
    [
33
        'Extension' => 'like,disLike,activateNotification,deactivateNotification'
Thomas Löffler's avatar
Thomas Löffler committed
34
35
36
    ]
);

37
38
39
// Register check for outdated extensions tassk
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\T3o\TerFe2\Task\CheckForOutdatedExtensions::class] = [
    'extension' => 'ter_fe2',
40
41
    'title' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_task_checkforoutdatedextensions.name',
    'description' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_task_checkforoutdatedextensions.description',
42
];
43

44
45
46
// Register check for expired extensions tassk
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\T3o\TerFe2\Task\CheckForExpiredExtensions::class] = [
    'extension' => 'ter_fe2',
47
48
    'title' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_task_checkforexpiredextensions.name',
    'description' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_task_checkforexpiredextensions.description',
49
];
50

51
$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['ter_fe2:extension'] = 'EXT:ter_fe2/Classes/Controller/Eid/ExtensionController.php';
Thomas Löffler's avatar
Thomas Löffler committed
52

Thomas Löffler's avatar
Thomas Löffler committed
53
$GLOBALS['TYPO3_CONF_VARS']['SYS']['routing']['aspects']['VersionMapper'] = \T3o\TerFe2\Routing\Aspect\VersionMapper::class;