[TASK] Fix system extensions composer.json type entry
[Packages/TYPO3.CMS.git] / typo3 / sysext / belog / ext_tables.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die('Access denied.');
4 }
5
6 // Register backend modules, but not in frontend or within upgrade wizards
7 if (TYPO3_MODE === 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
8 // Module Web->Info->Log
9 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
10 'web_info',
11 'TYPO3\\CMS\\Belog\\Module\\BackendLogModuleBootstrap',
12 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Classes/Module/BackendLogModuleBootstrap.php',
13 'Log'
14 );
15
16 // Module Tools->Log
17 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
18 'TYPO3.CMS.' . $_EXTKEY,
19 'system',
20 'log',
21 '',
22 array(
23 'Tools' => 'index',
24 'WebInfo' => 'index',
25 ),
26 array(
27 'access' => 'admin',
28 'icon' => 'EXT:belog/ext_icon.gif',
29 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xlf',
30 )
31 );
32 }