2 declare(strict_types = 1);
19 use Psr\Http\Message\ServerRequestInterface;
46 $this->configurationService = GeneralUtility::makeInstance(ConfigurationService::class);
54 return 'typoscript-waterfall';
63 'LLL:EXT:adminpanel/Resources/Private/Language/locallang_tsdebug.xlf:sub.waterfall.label'
74 'forceTemplateParsing'
76 if ($typoScriptFrontend->forceTemplateParsing) {
77 $typoScriptFrontend->set_no_cache(
'Admin Panel: Force template parsing',
true);
88 public function getContent(ModuleData $data): string
90 $view = GeneralUtility::makeInstance(StandaloneView::class);
91 $templateNameAndPath =
'EXT:adminpanel/Resources/Private/Templates/Modules/TsDebug/TypoScript.html';
92 $view->setTemplatePathAndFilename(GeneralUtility::getFileAbsFileName($templateNameAndPath));
93 $view->setPartialRootPaths([
'EXT:adminpanel/Resources/Private/Partials']);
95 $view->assignMultiple(
109 return $view->render();
117 $view = GeneralUtility::makeInstance(StandaloneView::class);
118 $templateNameAndPath =
'EXT:adminpanel/Resources/Private/Templates/Modules/TsDebug/TypoScriptSettings.html';
119 $view->setTemplatePathAndFilename(GeneralUtility::getFileAbsFileName($templateNameAndPath));
120 $view->setPartialRootPaths([
'EXT:adminpanel/Resources/Private/Partials']);
122 $view->assignMultiple(
135 return $view->render();
154 return (
bool)$this->configurationService->getConfigurationOption(
'tsdebug', $option);
175 return $timeTracker->printTSlog();
183 return GeneralUtility::makeInstance(TimeTracker::class);