| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | function main() { |
||
| 14 | $content = ''; |
||
| 15 | $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager'); |
||
| 16 | |||
| 17 | /** @var ClassCacheManager $classCacheManager */ |
||
| 18 | $classCacheManager = $objectManager->get('SJBR\\StaticInfoTables\\Cache\\ClassCacheManager'); |
||
| 19 | $classCacheManager->reBuild(); |
||
| 20 | |||
| 21 | /** @var DatabaseUpdateUtility $databaseUpdateUtility */ |
||
| 22 | $databaseUpdateUtility = $objectManager->get('SJBR\\StaticInfoTables\\Utility\\DatabaseUpdateUtility'); |
||
| 23 | $databaseUpdateUtility->doUpdate('static_info_tables_zh'); |
||
| 24 | |||
| 25 | $content .= '<p>' . \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('updateLanguageLabels', 'StaticInfoTables') . ' static_info_tables_zh.</p>'; |
||
| 26 | return $content; |
||
| 27 | } |
||
| 28 | |||
| 32 | } |