another minor fix to prior commit
[openemr.git] / phpmyadmin / tbl_gis_visualization.php
blobc7ea07d19fc4a4d70bd5811bccde85019f7c11b2
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * handles creation of the GIS visualizations.
6 * @package PhpMyAdmin
7 */
9 namespace PMA;
11 use PMA_Response;
12 use PMA_Util;
14 require_once 'libraries/common.inc.php';
15 require_once 'libraries/di/Container.class.php';
16 require_once 'libraries/Response.class.php';
17 require_once 'libraries/controllers/TableGisVisualizationController.class.php';
18 require_once 'libraries/Util.class.php';
20 $container = DI\Container::getDefaultContainer();
21 $container->factory('PMA\Controllers\Table\TableGisVisualizationController');
22 $container->alias(
23 'TableGisVisualizationController',
24 'PMA\Controllers\Table\TableGisVisualizationController'
26 $container->set('PMA_Response', PMA_Response::getInstance());
27 $container->alias('response', 'PMA_Response');
29 /* Define dependencies for the concerned controller */
30 $dependency_definitions = array(
31 "sql_query" => &$GLOBALS['sql_query'],
32 "url_params" => &$GLOBALS['url_params'],
33 "goto" => PMA_Util::getScriptNameForOption(
34 $GLOBALS['cfg']['DefaultTabDatabase'], 'database'
36 "back" => 'sql.php',
37 "visualizationSettings" => array()
40 /** @var Controllers\Table\TableGisVisualizationController $controller */
41 $controller = $container->get(
42 'TableGisVisualizationController', $dependency_definitions
44 $controller->indexAction();