Skip to content

Commit

Permalink
Remove Di\Container in tbl_relation.php
Browse files Browse the repository at this point in the history
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
  • Loading branch information
Tithugues committed Jun 15, 2019
1 parent c46ddb8 commit f5b858c
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions tbl_relation.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@

use PhpMyAdmin\Controllers\Table\RelationController;
use PhpMyAdmin\DatabaseInterface;
use PhpMyAdmin\Di\Container;
use PhpMyAdmin\Relation;
use PhpMyAdmin\Response;
use PhpMyAdmin\Table;
use PhpMyAdmin\Util;
use Symfony\Component\DependencyInjection\Definition;
Expand All @@ -30,16 +28,12 @@

require_once ROOT_PATH . 'libraries/common.inc.php';

$container = Container::getDefaultContainer();
$container->set(Response::class, Response::getInstance());
$container->alias('response', Response::class);

/* Define dependencies for the concerned controller */
$db = $container->get('db');
$table = $container->get('table');
$db = $containerBuilder->getParameter('db');
$table = $containerBuilder->getParameter('table');

/** @var DatabaseInterface $dbi */
$dbi = $container->get(DatabaseInterface::class);
$dbi = $containerBuilder->get(DatabaseInterface::class);

$options_array = [
'CASCADE' => 'CASCADE',
Expand Down

0 comments on commit f5b858c

Please sign in to comment.