@@ -17,29 +17,29 @@ |
||
| 17 | 17 | class VidiModulesAspect implements TableConfigurationPostProcessingHookInterface |
| 18 | 18 | { |
| 19 | 19 | |
| 20 | - /** |
|
| 21 | - * Initialize and populate TBE_MODULES_EXT with default data. |
|
| 22 | - * |
|
| 23 | - * @return void |
|
| 24 | - */ |
|
| 25 | - public function processData() |
|
| 26 | - { |
|
| 27 | - |
|
| 28 | - /** @var \Fab\Vidi\Module\ModuleLoader $moduleLoader */ |
|
| 29 | - $moduleLoader = GeneralUtility::makeInstance(\Fab\Vidi\Module\ModuleLoader::class); |
|
| 30 | - |
|
| 31 | - |
|
| 32 | - $configuration = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance( |
|
| 33 | - \TYPO3\CMS\Core\Configuration\ExtensionConfiguration::class |
|
| 34 | - )->get('vidi'); |
|
| 35 | - |
|
| 36 | - foreach (GeneralUtility::trimExplode(',', $configuration['data_types'],true) as $dataType) { |
|
| 37 | - if (!$moduleLoader->isRegistered($dataType)) { |
|
| 38 | - $moduleLoader->setDataType($dataType) |
|
| 39 | - #->isShown(false) |
|
| 40 | - ->register(); |
|
| 41 | - } |
|
| 42 | - } |
|
| 43 | - } |
|
| 20 | + /** |
|
| 21 | + * Initialize and populate TBE_MODULES_EXT with default data. |
|
| 22 | + * |
|
| 23 | + * @return void |
|
| 24 | + */ |
|
| 25 | + public function processData() |
|
| 26 | + { |
|
| 27 | + |
|
| 28 | + /** @var \Fab\Vidi\Module\ModuleLoader $moduleLoader */ |
|
| 29 | + $moduleLoader = GeneralUtility::makeInstance(\Fab\Vidi\Module\ModuleLoader::class); |
|
| 30 | + |
|
| 31 | + |
|
| 32 | + $configuration = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance( |
|
| 33 | + \TYPO3\CMS\Core\Configuration\ExtensionConfiguration::class |
|
| 34 | + )->get('vidi'); |
|
| 35 | + |
|
| 36 | + foreach (GeneralUtility::trimExplode(',', $configuration['data_types'],true) as $dataType) { |
|
| 37 | + if (!$moduleLoader->isRegistered($dataType)) { |
|
| 38 | + $moduleLoader->setDataType($dataType) |
|
| 39 | + #->isShown(false) |
|
| 40 | + ->register(); |
|
| 41 | + } |
|
| 42 | + } |
|
| 43 | + } |
|
| 44 | 44 | |
| 45 | 45 | } |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | \TYPO3\CMS\Core\Configuration\ExtensionConfiguration::class |
| 34 | 34 | )->get('vidi'); |
| 35 | 35 | |
| 36 | - foreach (GeneralUtility::trimExplode(',', $configuration['data_types'],true) as $dataType) { |
|
| 36 | + foreach (GeneralUtility::trimExplode(',', $configuration['data_types'], true) as $dataType) { |
|
| 37 | 37 | if (!$moduleLoader->isRegistered($dataType)) { |
| 38 | 38 | $moduleLoader->setDataType($dataType) |
| 39 | 39 | #->isShown(false) |