ext_localconf.php 1.49 KB
Newer Older
Dainis Abols's avatar
Dainis Abols committed
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
<?php
defined('TYPO3_MODE') || die('Access denied.');

// Initialize plugin
call_user_func(
    function () {
        // Create plugin
        \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
            'Lu.LuNabamusic',
            'Pi1',
            [
                'Front' => 'list',
                'Votes' => 'increase',
            ],
            [
                'Front' => 'list',
                'Votes' => 'increase',
            ]
        );

        // Add elements for dev views
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:lu_nabamusic/Configuration/TSConfig/mod.newElements.ts">');
    }
);

// Initialize task scheduler
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Lu\\LuNabamusic\\Tasks\\SongGatherTask'] = [
    'extension'        => 'tx_lunabamusic',
    'title'            => 'LLL:EXT:lu_nabamusic/Resources/Private/Language/locallang.xlf:cron.title',
    'description'      => 'LLL:EXT:lu_nabamusic/Resources/Private/Language/locallang.xlf:extension.title',
    'additionalFields' => '',
];

$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Lu\\LuNabamusic\\Tasks\\TopCacheTask'] = [
    'extension'        => 'tx_lunabamusic',
    'title'            => 'Cache top',
    'description'      => 'Cache top',
    'additionalFields' => '',
];
Dainis Abols's avatar
Dainis Abols committed
40
41
42

$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['nabaFileMigration']
    = \Lu\LuNabamusic\Updates\FileMigrationWizard::class;