forked from aimeos/aimeos-typo3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_tables.php
42 lines (32 loc) · 1.24 KB
/
ext_tables.php
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
40
41
42
<?php
defined('TYPO3') or die();
$aimeosExtPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('aimeos');
if (file_exists($aimeosExtPath . '/Resources/Libraries/autoload.php') === true) {
require_once $aimeosExtPath . '/Resources/Libraries/autoload.php';
}
/**
* Register backend module (up toTYPO3 11, removed in TYPO3 12)
*/
$_aimeosConfiguration = [
'access' => 'user,group',
'icon' => 'EXT:aimeos/Resources/Public/Icons/Extension.svg',
'labels' => 'LLL:EXT:aimeos/Resources/Private/Language/admin.xlf',
];
if ((bool) \Aimeos\Aimeos\Base::getExtConfig('showPageTree', false) == false) {
$_aimeosConfiguration['navigationComponentId'] = null;
$_aimeosConfiguration['inheritNavigationComponentFromMainModule'] = false;
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'aimeos',
'web',
'tx_aimeos_admin',
'', // position
[
'Aimeos\\Aimeos\\Controller\\AdminController' => 'index',
'Aimeos\\Aimeos\\Controller\\JqadmController' => 'search,batch,copy,create,delete,export,get,import,save,file',
'Aimeos\\Aimeos\\Controller\\JsonadmController' => 'index',
'Aimeos\\Aimeos\\Controller\\GraphqlController' => 'index',
],
$_aimeosConfiguration
);
?>