gl-website-deployer/admin/phpMyAdmin/libraries/classes/Controllers/RecentTablesListController.php
2024-11-23 20:45:29 +01:00

22 lines
426 B
PHP

<?php
declare(strict_types=1);
namespace PhpMyAdmin\Controllers;
use PhpMyAdmin\RecentFavoriteTable;
final class RecentTablesListController extends AbstractController
{
public function __invoke(): void
{
if (! $this->response->isAjax()) {
return;
}
$this->response->addJSON([
'list' => RecentFavoriteTable::getInstance('recent')->getHtmlList(),
]);
}
}