Skip to content

Commit

Permalink
[BUGFIX] Drop old CommandControllers
Browse files Browse the repository at this point in the history
  • Loading branch information
Apen committed Dec 10, 2024
1 parent 916756f commit b32be77
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
4 changes: 0 additions & 4 deletions Classes/Reports/CommandControllers.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,14 @@ public function getReport(): string
*/
public function display(): string
{
$items = $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'] ?? [];
$view = GeneralUtility::makeInstance(StandaloneView::class);
$view->setTemplatePathAndFilename(ExtensionManagementUtility::extPath('additional_reports') . 'Resources/Private/Templates/commandcontrollers-fluid.html');
$view->assign('itemsOld', $items);

$commands = GeneralUtility::makeInstance(CommandRegistry::class);
$items = [];
foreach ($commands->getSchedulableCommands() as $cmd => $el) {
$items[$cmd] = get_class($el);
}
$view->assign('itemsNew', $items);

return $view->render();
}

Expand Down
21 changes: 0 additions & 21 deletions Resources/Private/Templates/commandcontrollers-fluid.html
Original file line number Diff line number Diff line change
@@ -1,24 +1,3 @@
<div class="table-fit">
<table class="table table-striped table-hover table-condensed">
<thead>
<tr>
<th>
<f:translate key="LLL:EXT:additional_reports/Resources/Private/Language/locallang.xlf:commandcontrollers_description"/>
</th>
</tr>
<tr>
<th>Class</th>
</tr>
</thead>
<tbody>
<f:for each="{itemsOld}" as="class">
<tr>
<td>{class}</td>
</tr>
</f:for>
</tbody>
</table>
</div>
<div class="table-fit">
<table class="table table-striped table-hover table-condensed">
<thead>
Expand Down

0 comments on commit b32be77

Please sign in to comment.