Update website
This commit is contained in:
parent
41ce1aa076
commit
ea0eb1c6e0
4222 changed files with 721797 additions and 14 deletions
|
@ -0,0 +1,44 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace PhpMyAdmin\Controllers\Table\Structure;
|
||||
|
||||
use PhpMyAdmin\Controllers\Sql\SqlController;
|
||||
use PhpMyAdmin\Controllers\Table\AbstractController;
|
||||
use PhpMyAdmin\Controllers\Table\StructureController;
|
||||
use PhpMyAdmin\ResponseRenderer;
|
||||
use PhpMyAdmin\Template;
|
||||
|
||||
final class AddKeyController extends AbstractController
|
||||
{
|
||||
/** @var SqlController */
|
||||
private $sqlController;
|
||||
|
||||
/** @var StructureController */
|
||||
private $structureController;
|
||||
|
||||
public function __construct(
|
||||
ResponseRenderer $response,
|
||||
Template $template,
|
||||
string $db,
|
||||
string $table,
|
||||
SqlController $sqlController,
|
||||
StructureController $structureController
|
||||
) {
|
||||
parent::__construct($response, $template, $db, $table);
|
||||
$this->sqlController = $sqlController;
|
||||
$this->structureController = $structureController;
|
||||
}
|
||||
|
||||
public function __invoke(): void
|
||||
{
|
||||
global $reload;
|
||||
|
||||
($this->sqlController)();
|
||||
|
||||
$reload = true;
|
||||
|
||||
($this->structureController)();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue