ext_localconf.php 4.34 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, listForSitemap',
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, listForSitemap',
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

26 27 28
// Register extension providers
if (!isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ter_fe2']['extensionProviders'])) {
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ter_fe2']['extensionProviders'] = [];
flyguide's avatar
flyguide committed
29
}
30
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ter_fe2']['extensionProviders']['mirrors'] = [
Markus Sommer's avatar
Markus Sommer committed
31
    'class' => \T3o\TerFe2\Provider\MirrorProvider::class,
32
    'title' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_provider_mirrorprovider.name',
33 34
    'configuration' => [
        'repositoryId' => 1,
Markus Sommer's avatar
Markus Sommer committed
35
        'fileCachePath' => 'typo3temp/tx_terfe2/files/',
36 37 38
    ],
];
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ter_fe2']['extensionProviders']['file'] = [
Markus Sommer's avatar
Markus Sommer committed
39
    'class' => \T3o\TerFe2\Provider\FileProvider::class,
40
    'title' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_provider_fileprovider.name',
41
    'configuration' => [
Markus Sommer's avatar
Markus Sommer committed
42
        'extensionRootPath' => 'fileadmin/ter/',
43 44 45
    ],
];
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ter_fe2']['extensionProviders']['soap'] = [
Markus Sommer's avatar
Markus Sommer committed
46
    'class' => \T3o\TerFe2\Provider\SoapProvider::class,
47
    'title' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_provider_soapprovider.name',
48 49 50 51 52 53 54
    'configuration' => [
        'wsdlUrl' => '',
        'username' => '',
        'password' => '',
        'getExtensionsFunc' => 'getExtensions',
        'getFileUrlFunc' => 'getFileUrl',
        'getFileNameFunc' => 'getFileName',
Markus Sommer's avatar
Markus Sommer committed
55
        'getVersionDetailsFunc' => 'getVersionDetails',
56 57
    ],
];
58

59 60 61
// Register import from queue task
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\T3o\TerFe2\Task\ImportExtensionsFromQueueTask::class] = [
    'extension' => 'ter_fe2',
62 63
    'title' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_task_importextensionsfromqueuetask.name',
    'description' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_task_importextensionsfromqueuetask.description',
64
];
65

66
// Register import all extensions
67
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\T3o\TerFe2\Task\ImportAllExtensionKeysTask::class] = [
68
    'extension' => 'ter_fe2',
69 70
    'title' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_task_importallextensionstask.name',
    'description' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_task_importallextensionstask.description',
71
];
72

73 74 75
// Register check for outdated extensions tassk
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\T3o\TerFe2\Task\CheckForOutdatedExtensions::class] = [
    'extension' => 'ter_fe2',
76 77
    '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',
78
];
79

80 81 82
// Register check for expired extensions tassk
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\T3o\TerFe2\Task\CheckForExpiredExtensions::class] = [
    'extension' => 'ter_fe2',
83 84
    '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',
85
];
86

87
$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['ter_fe2:extension'] = 'EXT:ter_fe2/Classes/Controller/Eid/ExtensionController.php';