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]);
|
|
}
|
|
}
|