Issues (153)

ext_tables.php (1 issue)

1
<?php
2
3
defined('TYPO3') or die();
4
5
6
$aimeosExtPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('aimeos');
7
8
if (file_exists($aimeosExtPath . '/Resources/Libraries/autoload.php') === true) {
9
    require_once $aimeosExtPath . '/Resources/Libraries/autoload.php';
10
}
11
12
13
/**
14
 * Register backend module (up toTYPO3 11, removed in TYPO3 12)
15
 */
16
17
$_aimeosConfiguration = [
18
    'access' => 'user,group',
19
    'icon' => 'EXT:aimeos/Resources/Public/Icons/Extension.svg',
20
    'labels' => 'LLL:EXT:aimeos/Resources/Private/Language/admin.xlf',
21
];
22
23
if ((bool) \Aimeos\Aimeos\Base::getExtConfig('showPageTree', false) == false) {
0 ignored issues
show
Coding Style Best Practice introduced by
It seems like you are loosely comparing two booleans. Considering using the strict comparison === instead.

When comparing two booleans, it is generally considered safer to use the strict comparison operator.

Loading history...
24
    $_aimeosConfiguration['navigationComponentId'] = null;
25
    $_aimeosConfiguration['inheritNavigationComponentFromMainModule'] = false;
26
}
27
28
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
29
    'aimeos',
30
    'web',
31
    'tx_aimeos_admin',
32
    '', // position
33
    [
34
        'Aimeos\\Aimeos\\Controller\\AdminController' => 'index',
35
        'Aimeos\\Aimeos\\Controller\\JqadmController' => 'search,batch,copy,create,delete,export,get,import,save,file',
36
        'Aimeos\\Aimeos\\Controller\\JsonadmController' => 'index',
37
        'Aimeos\\Aimeos\\Controller\\GraphqlController' => 'index',
38
    ],
39
    $_aimeosConfiguration
40
);
41
42
?>