tbl_chart.php 972 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * handles creation of the chart
  5. *
  6. * @package PhpMyAdmin
  7. */
  8. use PhpMyAdmin\Controllers\Table\TableChartController;
  9. use PhpMyAdmin\Di\Container;
  10. use PhpMyAdmin\Response;
  11. require_once 'libraries/common.inc.php';
  12. $container = Container::getDefaultContainer();
  13. $container->factory('PhpMyAdmin\Controllers\Table\TableChartController');
  14. $container->alias(
  15. 'TableChartController', 'PhpMyAdmin\Controllers\Table\TableChartController'
  16. );
  17. $container->set('PhpMyAdmin\Response', Response::getInstance());
  18. $container->alias('response', 'PhpMyAdmin\Response');
  19. /* Define dependencies for the concerned controller */
  20. $dependency_definitions = array(
  21. "sql_query" => &$GLOBALS['sql_query'],
  22. "url_query" => &$GLOBALS['url_query'],
  23. "cfg" => &$GLOBALS['cfg']
  24. );
  25. /** @var TableChartController $controller */
  26. $controller = $container->get('TableChartController', $dependency_definitions);
  27. $controller->indexAction();