2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * handles creation of the GIS visualizations.
8 declare(strict_types
=1);
10 use PhpMyAdmin\Controllers\Table\GisVisualizationController
;
11 use PhpMyAdmin\Di\Container
;
12 use PhpMyAdmin\Response
;
15 if (! defined('ROOT_PATH')) {
16 define('ROOT_PATH', __DIR__
. DIRECTORY_SEPARATOR
);
19 require_once ROOT_PATH
. 'libraries/common.inc.php';
21 $container = Container
::getDefaultContainer();
22 $container->factory(GisVisualizationController
::class);
23 $container->set('PhpMyAdmin\Response', Response
::getInstance());
24 $container->alias('response', 'PhpMyAdmin\Response');
26 /* Define dependencies for the concerned controller */
27 $dependency_definitions = [
28 "sql_query" => &$GLOBALS['sql_query'],
29 "url_params" => &$GLOBALS['url_params'],
30 "goto" => Util
::getScriptNameForOption(
31 $GLOBALS['cfg']['DefaultTabDatabase'],
35 "visualizationSettings" => [],
38 /** @var GisVisualizationController $controller */
39 $controller = $container->get(
40 GisVisualizationController
::class,
41 $dependency_definitions
43 $controller->indexAction();