1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 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)();
}
}
|