forked from phpmyadmin/phpmyadmin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tbl_gis_visualization.php
39 lines (33 loc) · 1.11 KB
/
tbl_gis_visualization.php
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
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* handles creation of the GIS visualizations.
*
* @package PhpMyAdmin
*/
namespace PMA;
use PMA_Util;
require_once 'libraries/di/Container.class.php';
require_once 'libraries/controllers/TableGisVisualizationController.class.php';
require_once 'libraries/Util.class.php';
$container = DI\Container::getDefaultContainer();
$container->factory('PMA\Controllers\Table\TableGisVisualizationController');
$container->alias(
'TableGisVisualizationController',
'PMA\Controllers\Table\TableGisVisualizationController'
);
/* Define dependencies for the concerned controller */
$dependency_definitions = array(
"sql_query" => &$GLOBALS['sql_query'],
"url_params" => &$GLOBALS['url_params'],
"goto" => PMA_Util::getScriptNameForOption(
$GLOBALS['cfg']['DefaultTabDatabase'], 'database'
),
"back" => 'sql.php',
"visualizationSettings" => array()
);
/** @var Controllers\Table\TableGisVisualizationController $controller */
$controller = $container->get(
'TableGisVisualizationController', $dependency_definitions
);
$controller->indexAction();