You've already forked phpmyadmin
mirror of
https://github.com/phpmyadmin/phpmyadmin.git
synced 2026-10-25 06:39:48 +03:00
Extracts the config set and get to the ConfigController, the databases list to the DatabaseController, the tables list to the TableController and the columns list to the ColumnController. Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
16 lines
270 B
PHP
16 lines
270 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace PhpMyAdmin\Controllers;
|
|
|
|
final class DatabaseController extends AbstractController
|
|
{
|
|
public function all(): void
|
|
{
|
|
global $dblist;
|
|
|
|
$this->response->addJSON(['databases' => $dblist->databases]);
|
|
}
|
|
}
|