Translated using Weblate (Slovenian)
[phpmyadmin.git] / tbl_gis_visualization.php
blob194dc089879be993e37d00edc2cb2a1543271da1
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * handles creation of the GIS visualizations.
6 * @package PhpMyAdmin
7 */
8 declare(strict_types=1);
10 use PhpMyAdmin\Controllers\Table\GisVisualizationController;
11 use PhpMyAdmin\Di\Container;
12 use PhpMyAdmin\Response;
13 use PhpMyAdmin\Util;
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'],
32 'database'
34 "back" => 'sql.php',
35 "visualizationSettings" => [],
38 /** @var GisVisualizationController $controller */
39 $controller = $container->get(
40 GisVisualizationController::class,
41 $dependency_definitions
43 $controller->indexAction();